Fix header guards in base/ and jingle/.
Generated mechanically as follows:
git ls-files '*.h' | grep -E '^(base|jingle)/' | \
xargs parallel cpplint.py --filter=-,+build/header_guard -- 2>&1 | \
grep build/header_guard | tools/apply_cpplint_header_guard.py
Bug: 1200694
Change-Id: I05f0cbd12789f60556719fd9de514390fecda563
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2839332
Reviewed-by: Peter Boström <pbos@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#874561}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
c7b59b3f8b
commit
6e17434800
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_ALLOCATOR_ALLOCATOR_ALLOCATOR_CHECK_H_
|
||||
#define BASE_ALLOCATOR_ALLOCATOR_ALLOCATOR_CHECK_H_
|
||||
#ifndef BASE_ALLOCATOR_ALLOCATOR_CHECK_H_
|
||||
#define BASE_ALLOCATOR_ALLOCATOR_CHECK_H_
|
||||
|
||||
#include "base/base_export.h"
|
||||
|
||||
@ -15,4 +15,4 @@ BASE_EXPORT bool IsAllocatorInitialized();
|
||||
} // namespace allocator
|
||||
} // namespace base
|
||||
|
||||
#endif // BASE_ALLOCATOR_ALLOCATOR_ALLOCATOR_CHECK_H_
|
||||
#endif // BASE_ALLOCATOR_ALLOCATOR_CHECK_H_
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_ALLOCATOR_PARTITION_ALLOCATOR_ARM_BTI_TEST_FUNCTIONS
|
||||
#define BASE_ALLOCATOR_PARTITION_ALLOCATOR_ARM_BTI_TEST_FUNCTIONS
|
||||
#ifndef BASE_ALLOCATOR_PARTITION_ALLOCATOR_ARM_BTI_TEST_FUNCTIONS_H_
|
||||
#define BASE_ALLOCATOR_PARTITION_ALLOCATOR_ARM_BTI_TEST_FUNCTIONS_H_
|
||||
|
||||
#include "build/build_config.h"
|
||||
#if defined(ARCH_CPU_ARM64)
|
||||
@ -14,4 +14,4 @@ void arm_bti_test_function_end(void);
|
||||
}
|
||||
#endif // defined(ARCH_CPU_ARM64)
|
||||
|
||||
#endif // BASE_ALLOCATOR_PARTITION_ALLOCATOR_ARM_BTI_TEST_FUNCTIONS
|
||||
#endif // BASE_ALLOCATOR_PARTITION_ALLOCATOR_ARM_BTI_TEST_FUNCTIONS_H_
|
||||
|
@ -6,8 +6,8 @@
|
||||
// once the win-specific allocation shim has been removed, and the generic shim
|
||||
// has becaome the default.
|
||||
|
||||
#ifndef BASE_ALLOCATOR_WINHEAP_STUBS_H_
|
||||
#define BASE_ALLOCATOR_WINHEAP_STUBS_H_
|
||||
#ifndef BASE_ALLOCATOR_WINHEAP_STUBS_WIN_H_
|
||||
#define BASE_ALLOCATOR_WINHEAP_STUBS_WIN_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@ -45,4 +45,4 @@ BASE_EXPORT void WinHeapAlignedFree(void* ptr);
|
||||
} // namespace allocator
|
||||
} // namespace base
|
||||
|
||||
#endif // BASE_ALLOCATOR_WINHEAP_STUBS_H_
|
||||
#endif // BASE_ALLOCATOR_WINHEAP_STUBS_WIN_H_
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_
|
||||
#define BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_
|
||||
#ifndef BASE_FUCHSIA_TEST_INTERFACE_IMPL_H_
|
||||
#define BASE_FUCHSIA_TEST_INTERFACE_IMPL_H_
|
||||
|
||||
#include <lib/fidl/cpp/binding_set.h>
|
||||
#include <lib/zx/channel.h>
|
||||
@ -28,4 +28,4 @@ class TestInterfaceImpl : public testfidl::TestInterface {
|
||||
|
||||
} // namespace base
|
||||
|
||||
#endif // BASE_FUCHSIA_FAKE_INTERFACE_IMPL_H_
|
||||
#endif // BASE_FUCHSIA_TEST_INTERFACE_IMPL_H_
|
||||
|
@ -31,4 +31,4 @@ inline std::u16string UnicodeStringToString16(
|
||||
} // namespace i18n
|
||||
} // namespace base
|
||||
|
||||
#endif // BASE_UNICODESTRING_H_
|
||||
#endif // BASE_I18N_UNICODESTRING_H_
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_LAZY_INSTANCE_INTERNAL_H_
|
||||
#define BASE_LAZY_INSTANCE_INTERNAL_H_
|
||||
#ifndef BASE_LAZY_INSTANCE_HELPERS_H_
|
||||
#define BASE_LAZY_INSTANCE_HELPERS_H_
|
||||
|
||||
#include "base/atomicops.h"
|
||||
#include "base/base_export.h"
|
||||
@ -98,4 +98,4 @@ Type* GetOrCreateLazyPointer(subtle::AtomicWord* state,
|
||||
|
||||
} // namespace base
|
||||
|
||||
#endif // BASE_LAZY_INSTANCE_INTERNAL_H_
|
||||
#endif // BASE_LAZY_INSTANCE_HELPERS_H_
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_ANDROID_JAVA_HANDLER_THREAD_FOR_TESTING_H_
|
||||
#define BASE_ANDROID_JAVA_HANDLER_THREAD_FOR_TESTING_H_
|
||||
#ifndef BASE_TEST_ANDROID_JAVA_HANDLER_THREAD_HELPERS_H_
|
||||
#define BASE_TEST_ANDROID_JAVA_HANDLER_THREAD_HELPERS_H_
|
||||
|
||||
#include <jni.h>
|
||||
|
||||
@ -39,4 +39,4 @@ class JavaHandlerThreadHelpers {
|
||||
} // namespace android
|
||||
} // namespace base
|
||||
|
||||
#endif // BASE_ANDROID_JAVA_HANDLER_THREAD_FOR_TESTING_H_
|
||||
#endif // BASE_TEST_ANDROID_JAVA_HANDLER_THREAD_HELPERS_H_
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_THREADING_SCOPED_BLOCKING_CALL_H
|
||||
#define BASE_THREADING_SCOPED_BLOCKING_CALL_H
|
||||
#ifndef BASE_THREADING_SCOPED_BLOCKING_CALL_H_
|
||||
#define BASE_THREADING_SCOPED_BLOCKING_CALL_H_
|
||||
|
||||
#include "base/base_export.h"
|
||||
#include "base/callback_forward.h"
|
||||
@ -127,4 +127,4 @@ EnableIOJankMonitoringForProcess(IOJankReportingCallback reporting_callback);
|
||||
|
||||
} // namespace base
|
||||
|
||||
#endif // BASE_THREADING_SCOPED_BLOCKING_CALL_H
|
||||
#endif // BASE_THREADING_SCOPED_BLOCKING_CALL_H_
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_TRACE_EVENT_HEAP_PROFILER_H
|
||||
#define BASE_TRACE_EVENT_HEAP_PROFILER_H
|
||||
#ifndef BASE_TRACE_EVENT_HEAP_PROFILER_H_
|
||||
#define BASE_TRACE_EVENT_HEAP_PROFILER_H_
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/trace_event/heap_profiler_allocation_context_tracker.h"
|
||||
@ -131,4 +131,4 @@ class BASE_EXPORT HeapProfilerScopedIgnore {
|
||||
|
||||
} // namespace trace_event_internal
|
||||
|
||||
#endif // BASE_TRACE_EVENT_HEAP_PROFILER_H
|
||||
#endif // BASE_TRACE_EVENT_HEAP_PROFILER_H_
|
||||
|
@ -5,9 +5,9 @@
|
||||
// This header is needed so that mojo typemap files can specify their dependence
|
||||
// on Windows.h. This can be removed once https://crbug.com/798763 is resolved.
|
||||
|
||||
#ifndef BASE_WIN_WINDOWS_FULL_H
|
||||
#define BASE_WIN_WINDOWS_FULL_H
|
||||
#ifndef BASE_WIN_WINDOWS_FULL_H_
|
||||
#define BASE_WIN_WINDOWS_FULL_H_
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#endif // BASE_WIN_WINDOWS_FULL_H
|
||||
#endif // BASE_WIN_WINDOWS_FULL_H_
|
||||
|
@ -2,12 +2,12 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef JINGLE_NOTIFIER_BASE_CONST_BASE_H_
|
||||
#define JINGLE_NOTIFIER_BASE_CONST_BASE_H_
|
||||
#ifndef JINGLE_NOTIFIER_BASE_CONST_COMMUNICATOR_H_
|
||||
#define JINGLE_NOTIFIER_BASE_CONST_COMMUNICATOR_H_
|
||||
|
||||
namespace notifier {
|
||||
// The default port for jabber/xmpp communications.
|
||||
const int kDefaultXmppPort = 5222;
|
||||
} // namespace notifier
|
||||
|
||||
#endif // JINGLE_NOTIFIER_BASE_CONST_BASE_H_
|
||||
#endif // JINGLE_NOTIFIER_BASE_CONST_COMMUNICATOR_H_
|
||||
|
@ -5,8 +5,8 @@
|
||||
// A stand-in for stuff that expects a weak pointer to a BaseTask for
|
||||
// testing.
|
||||
|
||||
#ifndef JINGLE_NOTIFIER_FAKE_XMPP_CLIENT_H_
|
||||
#define JINGLE_NOTIFIER_FAKE_XMPP_CLIENT_H_
|
||||
#ifndef JINGLE_NOTIFIER_BASE_FAKE_BASE_TASK_H_
|
||||
#define JINGLE_NOTIFIER_BASE_FAKE_BASE_TASK_H_
|
||||
|
||||
#include "base/macros.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
@ -34,4 +34,4 @@ class FakeBaseTask {
|
||||
|
||||
} // namespace notifier
|
||||
|
||||
#endif // JINGLE_NOTIFIER_FAKE_XMPP_CLIENT_H_
|
||||
#endif // JINGLE_NOTIFIER_BASE_FAKE_BASE_TASK_H_
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef JINGLE_NOTIFIER_LISTENER_NON_BLOCKING_FAKE_PUSH_CLIENT_OBSERVER_H_
|
||||
#define JINGLE_NOTIFIER_LISTENER_NON_BLOCKING_FAKE_PUSH_CLIENT_OBSERVER_H_
|
||||
#ifndef JINGLE_NOTIFIER_LISTENER_FAKE_PUSH_CLIENT_OBSERVER_H_
|
||||
#define JINGLE_NOTIFIER_LISTENER_FAKE_PUSH_CLIENT_OBSERVER_H_
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "jingle/notifier/listener/push_client_observer.h"
|
||||
@ -31,4 +31,4 @@ class FakePushClientObserver : public PushClientObserver {
|
||||
|
||||
} // namespace notifier
|
||||
|
||||
#endif // JINGLE_NOTIFIER_LISTENER_NON_BLOCKING_FAKE_PUSH_CLIENT_OBSERVER_H_
|
||||
#endif // JINGLE_NOTIFIER_LISTENER_FAKE_PUSH_CLIENT_OBSERVER_H_
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef JINGLE_NOTIFIER_LISTENER_NON_BLOCKING_PUSH_CLIENT_OBSERVER_H_
|
||||
#define JINGLE_NOTIFIER_LISTENER_NON_BLOCKING_PUSH_CLIENT_OBSERVER_H_
|
||||
#ifndef JINGLE_NOTIFIER_LISTENER_PUSH_CLIENT_OBSERVER_H_
|
||||
#define JINGLE_NOTIFIER_LISTENER_PUSH_CLIENT_OBSERVER_H_
|
||||
|
||||
#include "jingle/notifier/listener/notification_defines.h"
|
||||
|
||||
@ -47,4 +47,4 @@ class PushClientObserver {
|
||||
|
||||
} // namespace notifier
|
||||
|
||||
#endif // JINGLE_NOTIFIER_LISTENER_NON_BLOCKING_PUSH_CLIENT_OBSERVER_H_
|
||||
#endif // JINGLE_NOTIFIER_LISTENER_PUSH_CLIENT_OBSERVER_H_
|
||||
|
@ -10,8 +10,8 @@
|
||||
// The task is deleted automatically by the jingle_xmpp::XmppClient. This occurs in the
|
||||
// destructor of TaskRunner, which is a superclass of jingle_xmpp::XmppClient.
|
||||
|
||||
#ifndef JINGLE_NOTIFIER_PUSH_NOTIFICATIONS_LISTENER_LISTEN_TASK_H_
|
||||
#define JINGLE_NOTIFIER_PUSH_NOTIFICATIONS_LISTENER_LISTEN_TASK_H_
|
||||
#ifndef JINGLE_NOTIFIER_LISTENER_PUSH_NOTIFICATIONS_LISTEN_TASK_H_
|
||||
#define JINGLE_NOTIFIER_LISTENER_PUSH_NOTIFICATIONS_LISTEN_TASK_H_
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/macros.h"
|
||||
@ -57,4 +57,4 @@ typedef PushNotificationsListenTask::Delegate
|
||||
|
||||
} // namespace notifier
|
||||
|
||||
#endif // JINGLE_NOTIFIER_PUSH_NOTIFICATIONS_LISTENER_LISTEN_TASK_H_
|
||||
#endif // JINGLE_NOTIFIER_LISTENER_PUSH_NOTIFICATIONS_LISTEN_TASK_H_
|
||||
|
Reference in New Issue
Block a user