chore: add ELECTRON_ prefix to C++ include guards (#31925)

This commit is contained in:
Milan Burda 2021-11-22 08:34:31 +01:00 committed by GitHub
parent 0865267387
commit c4ea33d1bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
358 changed files with 1080 additions and 1079 deletions

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_ACCESSOR_H_
#define SHELL_COMMON_GIN_HELPER_ACCESSOR_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_ACCESSOR_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_ACCESSOR_H_
namespace gin_helper {
@ -24,4 +24,4 @@ struct AccessorValue<const T*> {
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_ACCESSOR_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_ACCESSOR_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.chromium file.
#ifndef SHELL_COMMON_GIN_HELPER_ARGUMENTS_H_
#define SHELL_COMMON_GIN_HELPER_ARGUMENTS_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_ARGUMENTS_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_ARGUMENTS_H_
#include "gin/arguments.h"
@ -48,4 +48,4 @@ class Arguments : public gin::Arguments {
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_ARGUMENTS_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_ARGUMENTS_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_CALLBACK_H_
#define SHELL_COMMON_GIN_HELPER_CALLBACK_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_CALLBACK_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_CALLBACK_H_
#include <utility>
#include <vector>
@ -149,4 +149,4 @@ v8::Local<v8::Value> CallbackToV8Leaked(
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_CALLBACK_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_CALLBACK_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_CLEANED_UP_AT_EXIT_H_
#define SHELL_COMMON_GIN_HELPER_CLEANED_UP_AT_EXIT_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_CLEANED_UP_AT_EXIT_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_CLEANED_UP_AT_EXIT_H_
namespace gin_helper {
@ -24,4 +24,4 @@ class CleanedUpAtExit {
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_CLEANED_UP_AT_EXIT_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_CLEANED_UP_AT_EXIT_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_CONSTRUCTIBLE_H_
#define SHELL_COMMON_GIN_HELPER_CONSTRUCTIBLE_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_CONSTRUCTIBLE_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_CONSTRUCTIBLE_H_
#include "gin/per_isolate_data.h"
#include "gin/wrappable.h"
@ -66,4 +66,4 @@ class Constructible {
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_CONSTRUCTIBLE_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_CONSTRUCTIBLE_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_CONSTRUCTOR_H_
#define SHELL_COMMON_GIN_HELPER_CONSTRUCTOR_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_CONSTRUCTOR_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_CONSTRUCTOR_H_
#include "shell/common/gin_helper/function_template.h"
#include "shell/common/gin_helper/wrappable_base.h"
@ -168,4 +168,4 @@ v8::Local<v8::Function> CreateConstructor(
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_CONSTRUCTOR_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_CONSTRUCTOR_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_DESTROYABLE_H_
#define SHELL_COMMON_GIN_HELPER_DESTROYABLE_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_DESTROYABLE_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_DESTROYABLE_H_
#include "v8/include/v8.h"
@ -21,4 +21,4 @@ struct Destroyable {
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_DESTROYABLE_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_DESTROYABLE_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_DICTIONARY_H_
#define SHELL_COMMON_GIN_HELPER_DICTIONARY_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_DICTIONARY_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_DICTIONARY_H_
#include <type_traits>
#include <utility>
@ -214,4 +214,4 @@ struct Converter<gin_helper::Dictionary> {
} // namespace gin
#endif // SHELL_COMMON_GIN_HELPER_DICTIONARY_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_DICTIONARY_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_ERROR_THROWER_H_
#define SHELL_COMMON_GIN_HELPER_ERROR_THROWER_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_ERROR_THROWER_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_ERROR_THROWER_H_
#include "base/strings/string_piece.h"
#include "v8/include/v8.h"
@ -34,4 +34,4 @@ class ErrorThrower {
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_ERROR_THROWER_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_ERROR_THROWER_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_EVENT_EMITTER_H_
#define SHELL_COMMON_GIN_HELPER_EVENT_EMITTER_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_EVENT_EMITTER_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_EVENT_EMITTER_H_
#include <utility>
#include <vector>
@ -101,4 +101,4 @@ class EventEmitter : public gin_helper::Wrappable<T> {
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_EVENT_EMITTER_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_EVENT_EMITTER_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_EVENT_EMITTER_CALLER_H_
#define SHELL_COMMON_GIN_HELPER_EVENT_EMITTER_CALLER_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_EVENT_EMITTER_CALLER_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_EVENT_EMITTER_CALLER_H_
#include <utility>
#include <vector>
@ -88,4 +88,4 @@ v8::Local<v8::Value> CallMethod(gin::Wrappable<T>* object,
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_EVENT_EMITTER_CALLER_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_EVENT_EMITTER_CALLER_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.chromium file.
#ifndef SHELL_COMMON_GIN_HELPER_FUNCTION_TEMPLATE_H_
#define SHELL_COMMON_GIN_HELPER_FUNCTION_TEMPLATE_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_FUNCTION_TEMPLATE_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_FUNCTION_TEMPLATE_H_
#include <utility>
@ -329,4 +329,4 @@ struct CallbackTraits<
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_FUNCTION_TEMPLATE_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_FUNCTION_TEMPLATE_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.chromium file.
#ifndef SHELL_COMMON_GIN_HELPER_FUNCTION_TEMPLATE_EXTENSIONS_H_
#define SHELL_COMMON_GIN_HELPER_FUNCTION_TEMPLATE_EXTENSIONS_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_FUNCTION_TEMPLATE_EXTENSIONS_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_FUNCTION_TEMPLATE_EXTENSIONS_H_
#include <utility>
@ -57,4 +57,4 @@ v8::Local<v8::FunctionTemplate> CreateConstructorFunctionTemplate(
} // namespace gin
#endif // SHELL_COMMON_GIN_HELPER_FUNCTION_TEMPLATE_EXTENSIONS_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_FUNCTION_TEMPLATE_EXTENSIONS_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.chromium file.
#ifndef SHELL_COMMON_GIN_HELPER_LOCKER_H_
#define SHELL_COMMON_GIN_HELPER_LOCKER_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_LOCKER_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_LOCKER_H_
#include <memory>
@ -34,4 +34,4 @@ class Locker {
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_LOCKER_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_LOCKER_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_MICROTASKS_SCOPE_H_
#define SHELL_COMMON_GIN_HELPER_MICROTASKS_SCOPE_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_MICROTASKS_SCOPE_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_MICROTASKS_SCOPE_H_
#include <memory>
@ -31,4 +31,4 @@ class MicrotasksScope {
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_MICROTASKS_SCOPE_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_MICROTASKS_SCOPE_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_OBJECT_TEMPLATE_BUILDER_H_
#define SHELL_COMMON_GIN_HELPER_OBJECT_TEMPLATE_BUILDER_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_OBJECT_TEMPLATE_BUILDER_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_OBJECT_TEMPLATE_BUILDER_H_
#include "shell/common/gin_helper/function_template.h"
@ -74,4 +74,4 @@ class ObjectTemplateBuilder {
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_OBJECT_TEMPLATE_BUILDER_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_OBJECT_TEMPLATE_BUILDER_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by MIT license that can be found in the
// LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_PERSISTENT_DICTIONARY_H_
#define SHELL_COMMON_GIN_HELPER_PERSISTENT_DICTIONARY_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_PERSISTENT_DICTIONARY_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_PERSISTENT_DICTIONARY_H_
#include "shell/common/gin_helper/dictionary.h"
@ -60,4 +60,4 @@ struct Converter<gin_helper::PersistentDictionary> {
} // namespace gin
#endif // SHELL_COMMON_GIN_HELPER_PERSISTENT_DICTIONARY_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_PERSISTENT_DICTIONARY_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_PINNABLE_H_
#define SHELL_COMMON_GIN_HELPER_PINNABLE_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_PINNABLE_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_PINNABLE_H_
#include "v8/include/v8.h"
@ -31,4 +31,4 @@ class Pinnable {
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_PINNABLE_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_PINNABLE_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_PROMISE_H_
#define SHELL_COMMON_GIN_HELPER_PROMISE_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_PROMISE_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_PROMISE_H_
#include <string>
#include <tuple>
@ -181,4 +181,4 @@ struct Converter<gin_helper::Promise<T>> {
} // namespace gin
#endif // SHELL_COMMON_GIN_HELPER_PROMISE_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_PROMISE_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_HELPER_TRACKABLE_OBJECT_H_
#define SHELL_COMMON_GIN_HELPER_TRACKABLE_OBJECT_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_TRACKABLE_OBJECT_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_TRACKABLE_OBJECT_H_
#include <vector>
@ -137,4 +137,4 @@ electron::KeyWeakMap<int32_t>* TrackableObject<T>::weak_map_ = nullptr;
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_TRACKABLE_OBJECT_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_TRACKABLE_OBJECT_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.chromium file.
#ifndef SHELL_COMMON_GIN_HELPER_WRAPPABLE_H_
#define SHELL_COMMON_GIN_HELPER_WRAPPABLE_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_WRAPPABLE_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_WRAPPABLE_H_
#include "base/bind.h"
#include "gin/per_isolate_data.h"
@ -98,4 +98,4 @@ struct Converter<
} // namespace gin
#endif // SHELL_COMMON_GIN_HELPER_WRAPPABLE_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_WRAPPABLE_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE.chromium file.
#ifndef SHELL_COMMON_GIN_HELPER_WRAPPABLE_BASE_H_
#define SHELL_COMMON_GIN_HELPER_WRAPPABLE_BASE_H_
#ifndef ELECTRON_SHELL_COMMON_GIN_HELPER_WRAPPABLE_BASE_H_
#define ELECTRON_SHELL_COMMON_GIN_HELPER_WRAPPABLE_BASE_H_
#include "v8/include/v8.h"
@ -67,4 +67,4 @@ class WrappableBase {
} // namespace gin_helper
#endif // SHELL_COMMON_GIN_HELPER_WRAPPABLE_BASE_H_
#endif // ELECTRON_SHELL_COMMON_GIN_HELPER_WRAPPABLE_BASE_H_