chore: add ELECTRON_ prefix to C++ include guards (#31925)
This commit is contained in:
parent
0865267387
commit
c4ea33d1bf
358 changed files with 1080 additions and 1079 deletions
|
@ -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_APP_COMMAND_LINE_ARGS_H_
|
||||
#define SHELL_APP_COMMAND_LINE_ARGS_H_
|
||||
#ifndef ELECTRON_SHELL_APP_COMMAND_LINE_ARGS_H_
|
||||
#define ELECTRON_SHELL_APP_COMMAND_LINE_ARGS_H_
|
||||
|
||||
#include "base/command_line.h"
|
||||
|
||||
|
@ -14,4 +14,4 @@ bool IsSandboxEnabled(base::CommandLine* command_line);
|
|||
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_APP_COMMAND_LINE_ARGS_H_
|
||||
#endif // ELECTRON_SHELL_APP_COMMAND_LINE_ARGS_H_
|
||||
|
|
|
@ -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_APP_ELECTRON_CONTENT_CLIENT_H_
|
||||
#define SHELL_APP_ELECTRON_CONTENT_CLIENT_H_
|
||||
#ifndef ELECTRON_SHELL_APP_ELECTRON_CONTENT_CLIENT_H_
|
||||
#define ELECTRON_SHELL_APP_ELECTRON_CONTENT_CLIENT_H_
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
@ -38,4 +38,4 @@ class ElectronContentClient : public content::ContentClient {
|
|||
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_APP_ELECTRON_CONTENT_CLIENT_H_
|
||||
#endif // ELECTRON_SHELL_APP_ELECTRON_CONTENT_CLIENT_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 SHELL_APP_ELECTRON_CRASH_REPORTER_CLIENT_H_
|
||||
#define SHELL_APP_ELECTRON_CRASH_REPORTER_CLIENT_H_
|
||||
#ifndef ELECTRON_SHELL_APP_ELECTRON_CRASH_REPORTER_CLIENT_H_
|
||||
#define ELECTRON_SHELL_APP_ELECTRON_CRASH_REPORTER_CLIENT_H_
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
@ -91,4 +91,4 @@ class ElectronCrashReporterClient : public crash_reporter::CrashReporterClient {
|
|||
~ElectronCrashReporterClient() override;
|
||||
};
|
||||
|
||||
#endif // SHELL_APP_ELECTRON_CRASH_REPORTER_CLIENT_H_
|
||||
#endif // ELECTRON_SHELL_APP_ELECTRON_CRASH_REPORTER_CLIENT_H_
|
||||
|
|
|
@ -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_APP_ELECTRON_LIBRARY_MAIN_H_
|
||||
#define SHELL_APP_ELECTRON_LIBRARY_MAIN_H_
|
||||
#ifndef ELECTRON_SHELL_APP_ELECTRON_LIBRARY_MAIN_H_
|
||||
#define ELECTRON_SHELL_APP_ELECTRON_LIBRARY_MAIN_H_
|
||||
|
||||
#include "build/build_config.h"
|
||||
#include "electron/buildflags/buildflags.h"
|
||||
|
@ -20,4 +20,4 @@ __attribute__((visibility("default"))) int ElectronInitializeICUandStartNode(
|
|||
}
|
||||
#endif // OS_MAC
|
||||
|
||||
#endif // SHELL_APP_ELECTRON_LIBRARY_MAIN_H_
|
||||
#endif // ELECTRON_SHELL_APP_ELECTRON_LIBRARY_MAIN_H_
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SHELL_APP_ELECTRON_MAIN_H_
|
||||
#define SHELL_APP_ELECTRON_MAIN_H_
|
||||
#ifndef ELECTRON_SHELL_APP_ELECTRON_MAIN_H_
|
||||
#define ELECTRON_SHELL_APP_ELECTRON_MAIN_H_
|
||||
|
||||
#include "content/public/app/content_main.h"
|
||||
|
||||
#endif // SHELL_APP_ELECTRON_MAIN_H_
|
||||
#endif // ELECTRON_SHELL_APP_ELECTRON_MAIN_H_
|
||||
|
|
|
@ -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_APP_ELECTRON_MAIN_DELEGATE_H_
|
||||
#define SHELL_APP_ELECTRON_MAIN_DELEGATE_H_
|
||||
#ifndef ELECTRON_SHELL_APP_ELECTRON_MAIN_DELEGATE_H_
|
||||
#define ELECTRON_SHELL_APP_ELECTRON_MAIN_DELEGATE_H_
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
@ -66,4 +66,4 @@ class ElectronMainDelegate : public content::ContentMainDelegate {
|
|||
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_APP_ELECTRON_MAIN_DELEGATE_H_
|
||||
#endif // ELECTRON_SHELL_APP_ELECTRON_MAIN_DELEGATE_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 SHELL_APP_ELECTRON_MAIN_DELEGATE_MAC_H_
|
||||
#define SHELL_APP_ELECTRON_MAIN_DELEGATE_MAC_H_
|
||||
#ifndef ELECTRON_SHELL_APP_ELECTRON_MAIN_DELEGATE_MAC_H_
|
||||
#define ELECTRON_SHELL_APP_ELECTRON_MAIN_DELEGATE_MAC_H_
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
@ -12,4 +12,4 @@ void RegisterAtomCrApp();
|
|||
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_APP_ELECTRON_MAIN_DELEGATE_MAC_H_
|
||||
#endif // ELECTRON_SHELL_APP_ELECTRON_MAIN_DELEGATE_MAC_H_
|
||||
|
|
|
@ -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_APP_NODE_MAIN_H_
|
||||
#define SHELL_APP_NODE_MAIN_H_
|
||||
#ifndef ELECTRON_SHELL_APP_NODE_MAIN_H_
|
||||
#define ELECTRON_SHELL_APP_NODE_MAIN_H_
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
@ -11,4 +11,4 @@ int NodeMain(int argc, char* argv[]);
|
|||
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_APP_NODE_MAIN_H_
|
||||
#endif // ELECTRON_SHELL_APP_NODE_MAIN_H_
|
||||
|
|
|
@ -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_APP_UV_TASK_RUNNER_H_
|
||||
#define SHELL_APP_UV_TASK_RUNNER_H_
|
||||
#ifndef ELECTRON_SHELL_APP_UV_TASK_RUNNER_H_
|
||||
#define ELECTRON_SHELL_APP_UV_TASK_RUNNER_H_
|
||||
|
||||
#include <map>
|
||||
|
||||
|
@ -47,4 +47,4 @@ class UvTaskRunner : public base::SingleThreadTaskRunner {
|
|||
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_APP_UV_TASK_RUNNER_H_
|
||||
#endif // ELECTRON_SHELL_APP_UV_TASK_RUNNER_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue