diff --git a/common/check.h b/common/check.h index d30e0b6ccc9e..3441d1182a16 100644 --- a/common/check.h +++ b/common/check.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef COMMON_CHECK_H_ -#define COMMON_CHECK_H_ +#ifndef CARBON_COMMON_CHECK_H_ +#define CARBON_COMMON_CHECK_H_ #include "common/check_internal.h" @@ -47,4 +47,4 @@ namespace Carbon { } // namespace Carbon -#endif // COMMON_CHECK_H_ +#endif // CARBON_COMMON_CHECK_H_ diff --git a/common/check_internal.h b/common/check_internal.h index 1b52ba48e285..fa8d6ed141ee 100644 --- a/common/check_internal.h +++ b/common/check_internal.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef COMMON_CHECK_INTERNAL_H_ -#define COMMON_CHECK_INTERNAL_H_ +#ifndef CARBON_COMMON_CHECK_INTERNAL_H_ +#define CARBON_COMMON_CHECK_INTERNAL_H_ #include @@ -78,4 +78,4 @@ class ExitingStream { } // namespace Carbon::Internal -#endif // COMMON_CHECK_INTERNAL_H_ +#endif // CARBON_COMMON_CHECK_INTERNAL_H_ diff --git a/common/error.h b/common/error.h index 6d4012c377f9..be3361b328d3 100644 --- a/common/error.h +++ b/common/error.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef COMMON_ERROR_H_ -#define COMMON_ERROR_H_ +#ifndef CARBON_COMMON_ERROR_H_ +#define CARBON_COMMON_ERROR_H_ #include @@ -160,4 +160,4 @@ class ErrorBuilder { CARBON_MAKE_UNIQUE_NAME(_llvm_expected_line, __LINE__, __COUNTER__), \ var, expr) -#endif // COMMON_ERROR_H_ +#endif // CARBON_COMMON_ERROR_H_ diff --git a/common/fuzzing/proto_to_carbon.h b/common/fuzzing/proto_to_carbon.h index d5939408d04d..0b906e3571cf 100644 --- a/common/fuzzing/proto_to_carbon.h +++ b/common/fuzzing/proto_to_carbon.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef COMMON_FUZZING_PROTO_TO_CARBON_H_ -#define COMMON_FUZZING_PROTO_TO_CARBON_H_ +#ifndef CARBON_COMMON_FUZZING_PROTO_TO_CARBON_H_ +#define CARBON_COMMON_FUZZING_PROTO_TO_CARBON_H_ #include "common/fuzzing/carbon.pb.h" @@ -19,4 +19,4 @@ auto ProtoToCarbon(const Fuzzing::CompilationUnit& compilation_unit) } // namespace Carbon -#endif // COMMON_FUZZING_PROTO_TO_CARBON_H_ +#endif // CARBON_COMMON_FUZZING_PROTO_TO_CARBON_H_ diff --git a/common/indirect_value.h b/common/indirect_value.h index d30b0cbdc6e0..9849975df173 100644 --- a/common/indirect_value.h +++ b/common/indirect_value.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef COMMON_INDIRECT_VALUE_H_ -#define COMMON_INDIRECT_VALUE_H_ +#ifndef CARBON_COMMON_INDIRECT_VALUE_H_ +#define CARBON_COMMON_INDIRECT_VALUE_H_ #include #include @@ -106,4 +106,4 @@ auto CreateIndirectValue(Callable callable) } // namespace Carbon -#endif // COMMON_INDIRECT_VALUE_H_ +#endif // CARBON_COMMON_INDIRECT_VALUE_H_ diff --git a/common/metaprogramming.h b/common/metaprogramming.h index 4a5eefaa2ce9..1415e0ebb507 100644 --- a/common/metaprogramming.h +++ b/common/metaprogramming.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef COMMON_METAPROGRAMMING_H_ -#define COMMON_METAPROGRAMMING_H_ +#ifndef CARBON_COMMON_METAPROGRAMMING_H_ +#define CARBON_COMMON_METAPROGRAMMING_H_ #include @@ -31,4 +31,4 @@ constexpr auto Requires(F /* f */) -> bool { } // namespace Carbon -#endif // COMMON_METAPROGRAMMING_H_ +#endif // CARBON_COMMON_METAPROGRAMMING_H_ diff --git a/common/ostream.h b/common/ostream.h index 048bcea47d86..06c74882fc02 100644 --- a/common/ostream.h +++ b/common/ostream.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef COMMON_OSTREAM_H_ -#define COMMON_OSTREAM_H_ +#ifndef CARBON_COMMON_OSTREAM_H_ +#define CARBON_COMMON_OSTREAM_H_ #include @@ -93,4 +93,4 @@ auto operator<<(S& standard_out, const T& value) -> S& { } // namespace llvm -#endif // COMMON_OSTREAM_H_ +#endif // CARBON_COMMON_OSTREAM_H_ diff --git a/common/string_helpers.h b/common/string_helpers.h index 858ef611ecb9..c3b658d7a546 100644 --- a/common/string_helpers.h +++ b/common/string_helpers.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef COMMON_STRING_HELPERS_H_ -#define COMMON_STRING_HELPERS_H_ +#ifndef CARBON_COMMON_STRING_HELPERS_H_ +#define CARBON_COMMON_STRING_HELPERS_H_ #include #include @@ -32,4 +32,4 @@ auto StringRefContainsPointer(llvm::StringRef ref, const char* ptr) -> bool; } // namespace Carbon -#endif // COMMON_STRING_HELPERS_H_ +#endif // CARBON_COMMON_STRING_HELPERS_H_ diff --git a/explorer/ast/ast.h b/explorer/ast/ast.h index 0f890eb7b2e1..c2ed1341446e 100644 --- a/explorer/ast/ast.h +++ b/explorer/ast/ast.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_AST_AST_H_ -#define EXPLORER_AST_AST_H_ +#ifndef CARBON_EXPLORER_AST_AST_H_ +#define CARBON_EXPLORER_AST_AST_H_ #include @@ -29,4 +29,4 @@ struct AST { } // namespace Carbon -#endif // EXPLORER_AST_AST_H_ +#endif // CARBON_EXPLORER_AST_AST_H_ diff --git a/explorer/ast/ast_node.h b/explorer/ast/ast_node.h index 49a0f6270a05..6e156f8f23e1 100644 --- a/explorer/ast/ast_node.h +++ b/explorer/ast/ast_node.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_AST_AST_NODE_H_ -#define EXPLORER_AST_AST_NODE_H_ +#ifndef CARBON_EXPLORER_AST_AST_NODE_H_ +#define CARBON_EXPLORER_AST_AST_NODE_H_ #include "explorer/ast/ast_rtti.h" #include "explorer/common/source_location.h" @@ -76,4 +76,4 @@ class AstNode { } // namespace Carbon -#endif // EXPLORER_AST_AST_NODE_H_ +#endif // CARBON_EXPLORER_AST_AST_NODE_H_ diff --git a/explorer/ast/ast_test_matchers.h b/explorer/ast/ast_test_matchers.h index b98a4265f58c..323dab05371e 100644 --- a/explorer/ast/ast_test_matchers.h +++ b/explorer/ast/ast_test_matchers.h @@ -9,8 +9,8 @@ // TODO: Provide matchers for all node Kinds, and establish more uniform // conventions for them. -#ifndef EXPLORER_AST_AST_TEST_MATCHERS_H_ -#define EXPLORER_AST_AST_TEST_MATCHERS_H_ +#ifndef CARBON_EXPLORER_AST_AST_TEST_MATCHERS_H_ +#define CARBON_EXPLORER_AST_AST_TEST_MATCHERS_H_ #include #include @@ -129,4 +129,4 @@ inline auto ASTDeclarations( } // namespace Carbon -#endif // EXPLORER_AST_AST_TEST_MATCHERS_H_ +#endif // CARBON_EXPLORER_AST_AST_TEST_MATCHERS_H_ diff --git a/explorer/ast/ast_test_matchers_internal.h b/explorer/ast/ast_test_matchers_internal.h index cd3c55d304da..65843fad7429 100644 --- a/explorer/ast/ast_test_matchers_internal.h +++ b/explorer/ast/ast_test_matchers_internal.h @@ -4,8 +4,8 @@ // Implementation details of the functions in ast_test_matchers.h. -#ifndef EXPLORER_AST_AST_TEST_MATCHERS_INTERNAL_H_ -#define EXPLORER_AST_AST_TEST_MATCHERS_INTERNAL_H_ +#ifndef CARBON_EXPLORER_AST_AST_TEST_MATCHERS_INTERNAL_H_ +#define CARBON_EXPLORER_AST_AST_TEST_MATCHERS_INTERNAL_H_ #include #include @@ -234,4 +234,4 @@ class ASTDeclarationsMatcher { } // namespace Carbon::TestingInternal -#endif // EXPLORER_AST_AST_TEST_MATCHERS_INTERNAL_H_ +#endif // CARBON_EXPLORER_AST_AST_TEST_MATCHERS_INTERNAL_H_ diff --git a/explorer/ast/declaration.h b/explorer/ast/declaration.h index 97d5322aa5e9..0503735fbf84 100644 --- a/explorer/ast/declaration.h +++ b/explorer/ast/declaration.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_AST_DECLARATION_H_ -#define EXPLORER_AST_DECLARATION_H_ +#ifndef CARBON_EXPLORER_AST_DECLARATION_H_ +#define CARBON_EXPLORER_AST_DECLARATION_H_ #include #include @@ -422,4 +422,4 @@ auto GetName(const Declaration&) -> std::optional; } // namespace Carbon -#endif // EXPLORER_AST_DECLARATION_H_ +#endif // CARBON_EXPLORER_AST_DECLARATION_H_ diff --git a/explorer/ast/expression.h b/explorer/ast/expression.h index 1c1f49681073..ab023be7cda4 100644 --- a/explorer/ast/expression.h +++ b/explorer/ast/expression.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_AST_EXPRESSION_H_ -#define EXPLORER_AST_EXPRESSION_H_ +#ifndef CARBON_EXPLORER_AST_EXPRESSION_H_ +#define CARBON_EXPLORER_AST_EXPRESSION_H_ #include #include @@ -653,4 +653,4 @@ auto TupleExpressionFromParenContents( } // namespace Carbon -#endif // EXPLORER_AST_EXPRESSION_H_ +#endif // CARBON_EXPLORER_AST_EXPRESSION_H_ diff --git a/explorer/ast/impl_binding.h b/explorer/ast/impl_binding.h index 6704b1a83a73..8a3da95c5fea 100644 --- a/explorer/ast/impl_binding.h +++ b/explorer/ast/impl_binding.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_AST_IMPL_BINDING_H_ -#define EXPLORER_AST_IMPL_BINDING_H_ +#ifndef CARBON_EXPLORER_AST_IMPL_BINDING_H_ +#define CARBON_EXPLORER_AST_IMPL_BINDING_H_ #include @@ -75,4 +75,4 @@ class ImplBinding : public AstNode { } // namespace Carbon -#endif // EXPLORER_AST_IMPL_BINDING_H_ +#endif // CARBON_EXPLORER_AST_IMPL_BINDING_H_ diff --git a/explorer/ast/library_name.h b/explorer/ast/library_name.h index 256ad73f9f4d..90b102ad89f4 100644 --- a/explorer/ast/library_name.h +++ b/explorer/ast/library_name.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_AST_LIBRARY_NAME_H_ -#define EXPLORER_AST_LIBRARY_NAME_H_ +#ifndef CARBON_EXPLORER_AST_LIBRARY_NAME_H_ +#define CARBON_EXPLORER_AST_LIBRARY_NAME_H_ #include @@ -22,4 +22,4 @@ struct LibraryName { } // namespace Carbon -#endif // EXPLORER_AST_LIBRARY_NAME_H_ +#endif // CARBON_EXPLORER_AST_LIBRARY_NAME_H_ diff --git a/explorer/ast/paren_contents.h b/explorer/ast/paren_contents.h index c749f6715ec8..526802fc49cf 100644 --- a/explorer/ast/paren_contents.h +++ b/explorer/ast/paren_contents.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_AST_PAREN_CONTENTS_H_ -#define EXPLORER_AST_PAREN_CONTENTS_H_ +#ifndef CARBON_EXPLORER_AST_PAREN_CONTENTS_H_ +#define CARBON_EXPLORER_AST_PAREN_CONTENTS_H_ #include #include @@ -48,4 +48,4 @@ auto ParenContents::SingleTerm() const -> std::optional> { } // namespace Carbon -#endif // EXPLORER_AST_PAREN_CONTENTS_H_ +#endif // CARBON_EXPLORER_AST_PAREN_CONTENTS_H_ diff --git a/explorer/ast/pattern.h b/explorer/ast/pattern.h index b0428311dcb0..690394bb2b5b 100644 --- a/explorer/ast/pattern.h +++ b/explorer/ast/pattern.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_AST_PATTERN_H_ -#define EXPLORER_AST_PATTERN_H_ +#ifndef CARBON_EXPLORER_AST_PATTERN_H_ +#define CARBON_EXPLORER_AST_PATTERN_H_ #include #include @@ -346,4 +346,4 @@ class ExpressionPattern : public Pattern { } // namespace Carbon -#endif // EXPLORER_AST_PATTERN_H_ +#endif // CARBON_EXPLORER_AST_PATTERN_H_ diff --git a/explorer/ast/return_term.h b/explorer/ast/return_term.h index 79b26c918fdb..bbde4c6dbd76 100644 --- a/explorer/ast/return_term.h +++ b/explorer/ast/return_term.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_AST_RETURN_TERM_H_ -#define EXPLORER_AST_RETURN_TERM_H_ +#ifndef CARBON_EXPLORER_AST_RETURN_TERM_H_ +#define CARBON_EXPLORER_AST_RETURN_TERM_H_ #include #include @@ -97,4 +97,4 @@ class ReturnTerm { } // namespace Carbon -#endif // EXPLORER_AST_RETURN_TERM_H_ +#endif // CARBON_EXPLORER_AST_RETURN_TERM_H_ diff --git a/explorer/ast/statement.h b/explorer/ast/statement.h index 07b71539c8e8..7e960aae9e36 100644 --- a/explorer/ast/statement.h +++ b/explorer/ast/statement.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_AST_STATEMENT_H_ -#define EXPLORER_AST_STATEMENT_H_ +#ifndef CARBON_EXPLORER_AST_STATEMENT_H_ +#define CARBON_EXPLORER_AST_STATEMENT_H_ #include #include @@ -395,4 +395,4 @@ class Await : public Statement { } // namespace Carbon -#endif // EXPLORER_AST_STATEMENT_H_ +#endif // CARBON_EXPLORER_AST_STATEMENT_H_ diff --git a/explorer/ast/static_scope.h b/explorer/ast/static_scope.h index 0364ef19959d..b4f6b8bbc068 100644 --- a/explorer/ast/static_scope.h +++ b/explorer/ast/static_scope.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_AST_STATIC_SCOPE_H_ -#define EXPLORER_AST_STATIC_SCOPE_H_ +#ifndef CARBON_EXPLORER_AST_STATIC_SCOPE_H_ +#define CARBON_EXPLORER_AST_STATIC_SCOPE_H_ #include #include @@ -183,4 +183,4 @@ class StaticScope { } // namespace Carbon -#endif // EXPLORER_AST_STATIC_SCOPE_H_ +#endif // CARBON_EXPLORER_AST_STATIC_SCOPE_H_ diff --git a/explorer/ast/value_category.h b/explorer/ast/value_category.h index b286591b9d1b..a90e32dd7c77 100644 --- a/explorer/ast/value_category.h +++ b/explorer/ast/value_category.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_AST_VALUE_CATEGORY_H_ -#define EXPLORER_AST_VALUE_CATEGORY_H_ +#ifndef CARBON_EXPLORER_AST_VALUE_CATEGORY_H_ +#define CARBON_EXPLORER_AST_VALUE_CATEGORY_H_ namespace Carbon { @@ -19,4 +19,4 @@ enum class ValueCategory { } // namespace Carbon -#endif // EXPLORER_AST_VALUE_CATEGORY_H_ +#endif // CARBON_EXPLORER_AST_VALUE_CATEGORY_H_ diff --git a/explorer/common/arena.h b/explorer/common/arena.h index 122f0fbecbd8..3e5d1f4b6843 100644 --- a/explorer/common/arena.h +++ b/explorer/common/arena.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_COMMON_ARENA_H_ -#define EXPLORER_COMMON_ARENA_H_ +#ifndef CARBON_EXPLORER_COMMON_ARENA_H_ +#define CARBON_EXPLORER_COMMON_ARENA_H_ #include #include @@ -55,4 +55,4 @@ class Arena { } // namespace Carbon -#endif // EXPLORER_COMMON_ARENA_H_ +#endif // CARBON_EXPLORER_COMMON_ARENA_H_ diff --git a/explorer/common/error_builders.h b/explorer/common/error_builders.h index ffab5cbbec9c..17ad3c243c24 100644 --- a/explorer/common/error_builders.h +++ b/explorer/common/error_builders.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_COMMON_ERROR_BUILDERS_H_ -#define EXPLORER_COMMON_ERROR_BUILDERS_H_ +#ifndef CARBON_EXPLORER_COMMON_ERROR_BUILDERS_H_ +#define CARBON_EXPLORER_COMMON_ERROR_BUILDERS_H_ #include "common/error.h" #include "explorer/common/source_location.h" @@ -41,4 +41,4 @@ inline auto RuntimeError(SourceLocation loc) -> ErrorBuilder { } // namespace Carbon -#endif // EXPLORER_COMMON_ERROR_BUILDERS_H_ +#endif // CARBON_EXPLORER_COMMON_ERROR_BUILDERS_H_ diff --git a/explorer/common/nonnull.h b/explorer/common/nonnull.h index cfbb01e66d1c..c9f63c3a1685 100644 --- a/explorer/common/nonnull.h +++ b/explorer/common/nonnull.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_COMMON_NONNULL_H_ -#define EXPLORER_COMMON_NONNULL_H_ +#ifndef CARBON_EXPLORER_COMMON_NONNULL_H_ +#define CARBON_EXPLORER_COMMON_NONNULL_H_ #include @@ -19,4 +19,4 @@ using Nonnull = T _Nonnull; } // namespace Carbon -#endif // EXPLORER_COMMON_NONNULL_H_ +#endif // CARBON_EXPLORER_COMMON_NONNULL_H_ diff --git a/explorer/common/source_location.h b/explorer/common/source_location.h index 147f20b5bfda..ec9fc26b7c9a 100644 --- a/explorer/common/source_location.h +++ b/explorer/common/source_location.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_COMMON_SOURCE_LOCATION_H_ -#define EXPLORER_COMMON_SOURCE_LOCATION_H_ +#ifndef CARBON_EXPLORER_COMMON_SOURCE_LOCATION_H_ +#define CARBON_EXPLORER_COMMON_SOURCE_LOCATION_H_ #include #include @@ -42,4 +42,4 @@ class SourceLocation { } // namespace Carbon -#endif // EXPLORER_COMMON_SOURCE_LOCATION_H_ +#endif // CARBON_EXPLORER_COMMON_SOURCE_LOCATION_H_ diff --git a/explorer/fuzzing/ast_to_proto.h b/explorer/fuzzing/ast_to_proto.h index 8a39b493d19f..7f9810533b38 100644 --- a/explorer/fuzzing/ast_to_proto.h +++ b/explorer/fuzzing/ast_to_proto.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_FUZZING_AST_TO_PROTO_H_ -#define EXPLORER_FUZZING_AST_TO_PROTO_H_ +#ifndef CARBON_EXPLORER_FUZZING_AST_TO_PROTO_H_ +#define CARBON_EXPLORER_FUZZING_AST_TO_PROTO_H_ #include "common/fuzzing/carbon.pb.h" #include "explorer/ast/ast.h" @@ -15,4 +15,4 @@ auto AstToProto(const AST& ast) -> Fuzzing::CompilationUnit; } // namespace Carbon -#endif // EXPLORER_FUZZING_AST_TO_PROTO_H_ +#endif // CARBON_EXPLORER_FUZZING_AST_TO_PROTO_H_ diff --git a/explorer/fuzzing/fuzzer_util.h b/explorer/fuzzing/fuzzer_util.h index 42f4bbd82ab0..b035a37a4852 100644 --- a/explorer/fuzzing/fuzzer_util.h +++ b/explorer/fuzzing/fuzzer_util.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_FUZZING_FUZZER_UTIL_H_ -#define EXPLORER_FUZZING_FUZZER_UTIL_H_ +#ifndef CARBON_EXPLORER_FUZZING_FUZZER_UTIL_H_ +#define CARBON_EXPLORER_FUZZING_FUZZER_UTIL_H_ #include "common/error.h" #include "common/fuzzing/carbon.pb.h" @@ -27,4 +27,4 @@ auto GetRunfilesFile(const std::string& file) -> ErrorOr; } // namespace Internal } // namespace Carbon -#endif // EXPLORER_FUZZING_FUZZER_UTIL_H_ +#endif // CARBON_EXPLORER_FUZZING_FUZZER_UTIL_H_ diff --git a/explorer/interpreter/action.h b/explorer/interpreter/action.h index 720b3370e0a3..0d0633d00f43 100644 --- a/explorer/interpreter/action.h +++ b/explorer/interpreter/action.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_ACTION_H_ -#define EXPLORER_INTERPRETER_ACTION_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_ACTION_H_ +#define CARBON_EXPLORER_INTERPRETER_ACTION_H_ #include #include @@ -251,4 +251,4 @@ class ScopeAction : public Action { } // namespace Carbon -#endif // EXPLORER_INTERPRETER_ACTION_H_ +#endif // CARBON_EXPLORER_INTERPRETER_ACTION_H_ diff --git a/explorer/interpreter/action_stack.h b/explorer/interpreter/action_stack.h index b4f54290d9e7..49e5711b67f2 100644 --- a/explorer/interpreter/action_stack.h +++ b/explorer/interpreter/action_stack.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_ACTION_STACK_H_ -#define EXPLORER_INTERPRETER_ACTION_STACK_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_ACTION_STACK_H_ +#define CARBON_EXPLORER_INTERPRETER_ACTION_STACK_H_ #include #include @@ -128,4 +128,4 @@ class ActionStack { } // namespace Carbon -#endif // EXPLORER_INTERPRETER_ACTION_STACK_H_ +#endif // CARBON_EXPLORER_INTERPRETER_ACTION_STACK_H_ diff --git a/explorer/interpreter/address.h b/explorer/interpreter/address.h index de9af4e8f0af..328088a9f4e6 100644 --- a/explorer/interpreter/address.h +++ b/explorer/interpreter/address.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_ADDRESS_H_ -#define EXPLORER_INTERPRETER_ADDRESS_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_ADDRESS_H_ +#define CARBON_EXPLORER_INTERPRETER_ADDRESS_H_ #include #include @@ -84,4 +84,4 @@ class Address { } // namespace Carbon -#endif // EXPLORER_INTERPRETER_ADDRESS_H_ +#endif // CARBON_EXPLORER_INTERPRETER_ADDRESS_H_ diff --git a/explorer/interpreter/dictionary.h b/explorer/interpreter/dictionary.h index 738f49458b88..7f3dbb2b5349 100644 --- a/explorer/interpreter/dictionary.h +++ b/explorer/interpreter/dictionary.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_DICTIONARY_H_ -#define EXPLORER_INTERPRETER_DICTIONARY_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_DICTIONARY_H_ +#define CARBON_EXPLORER_INTERPRETER_DICTIONARY_H_ #include #include @@ -101,4 +101,4 @@ class Dictionary { } // namespace Carbon -#endif // EXPLORER_INTERPRETER_DICTIONARY_H_ +#endif // CARBON_EXPLORER_INTERPRETER_DICTIONARY_H_ diff --git a/explorer/interpreter/exec_program.h b/explorer/interpreter/exec_program.h index 76c2b572ca37..79d6d7b0e2d6 100644 --- a/explorer/interpreter/exec_program.h +++ b/explorer/interpreter/exec_program.h @@ -6,8 +6,8 @@ // statement. The intent is to minimize the amount of C++ in the .ypp file, to // improve ease of maintenance. -#ifndef EXPLORER_INTERPRETER_EXEC_PROGRAM_H_ -#define EXPLORER_INTERPRETER_EXEC_PROGRAM_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_EXEC_PROGRAM_H_ +#define CARBON_EXPLORER_INTERPRETER_EXEC_PROGRAM_H_ #include "explorer/ast/ast.h" #include "llvm/Support/raw_ostream.h" @@ -21,4 +21,4 @@ auto ExecProgram(Nonnull arena, AST ast, } // namespace Carbon -#endif // EXPLORER_INTERPRETER_EXEC_PROGRAM_H_ +#endif // CARBON_EXPLORER_INTERPRETER_EXEC_PROGRAM_H_ diff --git a/explorer/interpreter/field_path.h b/explorer/interpreter/field_path.h index e6874d021730..05d4c3927137 100644 --- a/explorer/interpreter/field_path.h +++ b/explorer/interpreter/field_path.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_FIELD_PATH_H_ -#define EXPLORER_INTERPRETER_FIELD_PATH_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_FIELD_PATH_H_ +#define CARBON_EXPLORER_INTERPRETER_FIELD_PATH_H_ #include #include @@ -91,4 +91,4 @@ class FieldPath { } // namespace Carbon -#endif // EXPLORER_INTERPRETER_FIELD_PATH_H_ +#endif // CARBON_EXPLORER_INTERPRETER_FIELD_PATH_H_ diff --git a/explorer/interpreter/heap.h b/explorer/interpreter/heap.h index c8a2dec474f5..aab3b9d22009 100644 --- a/explorer/interpreter/heap.h +++ b/explorer/interpreter/heap.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_HEAP_H_ -#define EXPLORER_INTERPRETER_HEAP_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_HEAP_H_ +#define CARBON_EXPLORER_INTERPRETER_HEAP_H_ #include @@ -60,4 +60,4 @@ class Heap : public HeapAllocationInterface { } // namespace Carbon -#endif // EXPLORER_INTERPRETER_HEAP_H_ +#endif // CARBON_EXPLORER_INTERPRETER_HEAP_H_ diff --git a/explorer/interpreter/heap_allocation_interface.h b/explorer/interpreter/heap_allocation_interface.h index 67a7796023a4..bb6f3811112e 100644 --- a/explorer/interpreter/heap_allocation_interface.h +++ b/explorer/interpreter/heap_allocation_interface.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_HEAP_ALLOCATION_INTERFACE_H_ -#define EXPLORER_INTERPRETER_HEAP_ALLOCATION_INTERFACE_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_HEAP_ALLOCATION_INTERFACE_H_ +#define CARBON_EXPLORER_INTERPRETER_HEAP_ALLOCATION_INTERFACE_H_ #include "explorer/common/arena.h" #include "explorer/common/nonnull.h" @@ -37,4 +37,4 @@ class HeapAllocationInterface { } // namespace Carbon -#endif // EXPLORER_INTERPRETER_HEAP_ALLOCATION_INTERFACE_H_ +#endif // CARBON_EXPLORER_INTERPRETER_HEAP_ALLOCATION_INTERFACE_H_ diff --git a/explorer/interpreter/impl_scope.h b/explorer/interpreter/impl_scope.h index 3a94f0b02cd5..0505a2394039 100644 --- a/explorer/interpreter/impl_scope.h +++ b/explorer/interpreter/impl_scope.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_IMPL_SCOPE_H_ -#define EXPLORER_INTERPRETER_IMPL_SCOPE_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_IMPL_SCOPE_H_ +#define CARBON_EXPLORER_INTERPRETER_IMPL_SCOPE_H_ #include "explorer/ast/declaration.h" @@ -110,4 +110,4 @@ class ImplScope { } // namespace Carbon -#endif // EXPLORER_INTERPRETER_IMPL_SCOPE_H_ +#endif // CARBON_EXPLORER_INTERPRETER_IMPL_SCOPE_H_ diff --git a/explorer/interpreter/interpreter.h b/explorer/interpreter/interpreter.h index a279230d049e..f05bdaa36ddb 100644 --- a/explorer/interpreter/interpreter.h +++ b/explorer/interpreter/interpreter.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_INTERPRETER_H_ -#define EXPLORER_INTERPRETER_INTERPRETER_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_INTERPRETER_H_ +#define CARBON_EXPLORER_INTERPRETER_INTERPRETER_H_ #include #include @@ -57,4 +57,4 @@ auto InterpPattern(Nonnull p, Nonnull arena, } // namespace Carbon -#endif // EXPLORER_INTERPRETER_INTERPRETER_H_ +#endif // CARBON_EXPLORER_INTERPRETER_INTERPRETER_H_ diff --git a/explorer/interpreter/resolve_control_flow.h b/explorer/interpreter/resolve_control_flow.h index 44e6e5dcb115..0ec8bb123e3f 100644 --- a/explorer/interpreter/resolve_control_flow.h +++ b/explorer/interpreter/resolve_control_flow.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_RESOLVE_CONTROL_FLOW_H_ -#define EXPLORER_INTERPRETER_RESOLVE_CONTROL_FLOW_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_RESOLVE_CONTROL_FLOW_H_ +#define CARBON_EXPLORER_INTERPRETER_RESOLVE_CONTROL_FLOW_H_ #include "explorer/ast/ast.h" #include "explorer/common/nonnull.h" @@ -18,4 +18,4 @@ auto ResolveControlFlow(AST& ast) -> ErrorOr; } // namespace Carbon -#endif // EXPLORER_INTERPRETER_RESOLVE_CONTROL_FLOW_H_ +#endif // CARBON_EXPLORER_INTERPRETER_RESOLVE_CONTROL_FLOW_H_ diff --git a/explorer/interpreter/resolve_names.h b/explorer/interpreter/resolve_names.h index 2218bd29c9a3..01b5a5fa9e3b 100644 --- a/explorer/interpreter/resolve_names.h +++ b/explorer/interpreter/resolve_names.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_RESOLVE_NAMES_H_ -#define EXPLORER_INTERPRETER_RESOLVE_NAMES_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_RESOLVE_NAMES_H_ +#define CARBON_EXPLORER_INTERPRETER_RESOLVE_NAMES_H_ #include "explorer/ast/ast.h" #include "explorer/common/arena.h" @@ -17,4 +17,4 @@ auto ResolveNames(AST& ast) -> ErrorOr; } // namespace Carbon -#endif // EXPLORER_INTERPRETER_RESOLVE_NAMES_H_ +#endif // CARBON_EXPLORER_INTERPRETER_RESOLVE_NAMES_H_ diff --git a/explorer/interpreter/stack.h b/explorer/interpreter/stack.h index 38b933f58633..99c4d2467ad4 100644 --- a/explorer/interpreter/stack.h +++ b/explorer/interpreter/stack.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_STACK_H_ -#define EXPLORER_INTERPRETER_STACK_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_STACK_H_ +#define CARBON_EXPLORER_INTERPRETER_STACK_H_ #include #include @@ -72,4 +72,4 @@ struct Stack { } // namespace Carbon -#endif // EXPLORER_INTERPRETER_STACK_H_ +#endif // CARBON_EXPLORER_INTERPRETER_STACK_H_ diff --git a/explorer/interpreter/type_checker.h b/explorer/interpreter/type_checker.h index fae2bba7fce3..3e09d29afef8 100644 --- a/explorer/interpreter/type_checker.h +++ b/explorer/interpreter/type_checker.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_TYPE_CHECKER_H_ -#define EXPLORER_INTERPRETER_TYPE_CHECKER_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_TYPE_CHECKER_H_ +#define CARBON_EXPLORER_INTERPRETER_TYPE_CHECKER_H_ #include @@ -233,4 +233,4 @@ class TypeChecker { } // namespace Carbon -#endif // EXPLORER_INTERPRETER_TYPE_CHECKER_H_ +#endif // CARBON_EXPLORER_INTERPRETER_TYPE_CHECKER_H_ diff --git a/explorer/interpreter/value.h b/explorer/interpreter/value.h index ae9cc50f2f9a..a449059dfe6c 100644 --- a/explorer/interpreter/value.h +++ b/explorer/interpreter/value.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_INTERPRETER_VALUE_H_ -#define EXPLORER_INTERPRETER_VALUE_H_ +#ifndef CARBON_EXPLORER_INTERPRETER_VALUE_H_ +#define CARBON_EXPLORER_INTERPRETER_VALUE_H_ #include #include @@ -938,4 +938,4 @@ auto ValueEqual(Nonnull v1, Nonnull v2) -> bool; } // namespace Carbon -#endif // EXPLORER_INTERPRETER_VALUE_H_ +#endif // CARBON_EXPLORER_INTERPRETER_VALUE_H_ diff --git a/explorer/main.h b/explorer/main.h index 3e482f28583b..f06bba4329cb 100644 --- a/explorer/main.h +++ b/explorer/main.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_MAIN_H_ -#define EXPLORER_MAIN_H_ +#ifndef CARBON_EXPLORER_MAIN_H_ +#define CARBON_EXPLORER_MAIN_H_ #include "llvm/ADT/StringRef.h" @@ -15,4 +15,4 @@ auto ExplorerMain(llvm::StringRef default_prelude_file, int argc, char** argv) } // namespace Carbon -#endif // EXPLORER_MAIN_H_ +#endif // CARBON_EXPLORER_MAIN_H_ diff --git a/explorer/syntax/bison_wrap.h b/explorer/syntax/bison_wrap.h index ebe8040d28b0..8bdef1a6c381 100644 --- a/explorer/syntax/bison_wrap.h +++ b/explorer/syntax/bison_wrap.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_SYNTAX_BISON_WRAP_H_ -#define EXPLORER_SYNTAX_BISON_WRAP_H_ +#ifndef CARBON_EXPLORER_SYNTAX_BISON_WRAP_H_ +#define CARBON_EXPLORER_SYNTAX_BISON_WRAP_H_ #include @@ -42,4 +42,4 @@ class BisonWrap { } // namespace Carbon -#endif // EXPLORER_SYNTAX_BISON_WRAP_H_ +#endif // CARBON_EXPLORER_SYNTAX_BISON_WRAP_H_ diff --git a/explorer/syntax/parse.h b/explorer/syntax/parse.h index 02599481eed1..880dd0fc9fbe 100644 --- a/explorer/syntax/parse.h +++ b/explorer/syntax/parse.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_SYNTAX_PARSE_H_ -#define EXPLORER_SYNTAX_PARSE_H_ +#ifndef CARBON_EXPLORER_SYNTAX_PARSE_H_ +#define CARBON_EXPLORER_SYNTAX_PARSE_H_ #include #include @@ -27,4 +27,4 @@ auto ParseFromString(Nonnull arena, std::string_view input_file_name, } // namespace Carbon -#endif // EXPLORER_SYNTAX_PARSE_H_ +#endif // CARBON_EXPLORER_SYNTAX_PARSE_H_ diff --git a/explorer/syntax/parse_and_lex_context.h b/explorer/syntax/parse_and_lex_context.h index 4e3bdf0b9649..358a492672f6 100644 --- a/explorer/syntax/parse_and_lex_context.h +++ b/explorer/syntax/parse_and_lex_context.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_SYNTAX_PARSE_AND_LEX_CONTEXT_H_ -#define EXPLORER_SYNTAX_PARSE_AND_LEX_CONTEXT_H_ +#ifndef CARBON_EXPLORER_SYNTAX_PARSE_AND_LEX_CONTEXT_H_ +#define CARBON_EXPLORER_SYNTAX_PARSE_AND_LEX_CONTEXT_H_ #include @@ -62,4 +62,4 @@ class ParseAndLexContext { // Declares yylex for the parser's sake. YY_DECL; -#endif // EXPLORER_SYNTAX_PARSE_AND_LEX_CONTEXT_H_ +#endif // CARBON_EXPLORER_SYNTAX_PARSE_AND_LEX_CONTEXT_H_ diff --git a/explorer/syntax/parse_test_matchers.h b/explorer/syntax/parse_test_matchers.h index 867b88f2af7a..9936beab0754 100644 --- a/explorer/syntax/parse_test_matchers.h +++ b/explorer/syntax/parse_test_matchers.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_SYNTAX_PARSE_TEST_MATCHERS_H_ -#define EXPLORER_SYNTAX_PARSE_TEST_MATCHERS_H_ +#ifndef CARBON_EXPLORER_SYNTAX_PARSE_TEST_MATCHERS_H_ +#define CARBON_EXPLORER_SYNTAX_PARSE_TEST_MATCHERS_H_ #include #include @@ -20,4 +20,4 @@ inline auto ParsedAs(::testing::Matcher ast_matcher) { } // namespace Carbon -#endif // EXPLORER_SYNTAX_PARSE_TEST_MATCHERS_H_ +#endif // CARBON_EXPLORER_SYNTAX_PARSE_TEST_MATCHERS_H_ diff --git a/explorer/syntax/parse_test_matchers_internal.h b/explorer/syntax/parse_test_matchers_internal.h index 98c273d30f1e..2e4fbd6e93e2 100644 --- a/explorer/syntax/parse_test_matchers_internal.h +++ b/explorer/syntax/parse_test_matchers_internal.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_SYNTAX_PARSE_TEST_MATCHERS_INTERNAL_H_ -#define EXPLORER_SYNTAX_PARSE_TEST_MATCHERS_INTERNAL_H_ +#ifndef CARBON_EXPLORER_SYNTAX_PARSE_TEST_MATCHERS_INTERNAL_H_ +#define CARBON_EXPLORER_SYNTAX_PARSE_TEST_MATCHERS_INTERNAL_H_ #include #include @@ -57,4 +57,4 @@ class ParsedAsMatcher { } // namespace Carbon::TestingInternal -#endif // EXPLORER_SYNTAX_PARSE_TEST_MATCHERS_INTERNAL_H_ +#endif // CARBON_EXPLORER_SYNTAX_PARSE_TEST_MATCHERS_INTERNAL_H_ diff --git a/explorer/syntax/prelude.h b/explorer/syntax/prelude.h index 9c13d5c1cb8b..7656466b4ea1 100644 --- a/explorer/syntax/prelude.h +++ b/explorer/syntax/prelude.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef EXPLORER_SYNTAX_PRELUDE_H_ -#define EXPLORER_SYNTAX_PRELUDE_H_ +#ifndef CARBON_EXPLORER_SYNTAX_PRELUDE_H_ +#define CARBON_EXPLORER_SYNTAX_PRELUDE_H_ #include @@ -19,4 +19,4 @@ void AddPrelude(std::string_view prelude_file_name, Nonnull arena, } // namespace Carbon -#endif // EXPLORER_SYNTAX_PRELUDE_H_ +#endif // CARBON_EXPLORER_SYNTAX_PRELUDE_H_ diff --git a/migrate_cpp/cpp_refactoring/fn_inserter.h b/migrate_cpp/cpp_refactoring/fn_inserter.h index fe8fcdeb3652..5e75b0a809cd 100644 --- a/migrate_cpp/cpp_refactoring/fn_inserter.h +++ b/migrate_cpp/cpp_refactoring/fn_inserter.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef MIGRATE_CPP_CPP_REFACTORING_FN_INSERTER_H_ -#define MIGRATE_CPP_CPP_REFACTORING_FN_INSERTER_H_ +#ifndef CARBON_MIGRATE_CPP_CPP_REFACTORING_FN_INSERTER_H_ +#define CARBON_MIGRATE_CPP_CPP_REFACTORING_FN_INSERTER_H_ #include "migrate_cpp/cpp_refactoring/matcher.h" @@ -25,4 +25,4 @@ class FnInserterFactory : public MatcherFactoryBase { } // namespace Carbon -#endif // MIGRATE_CPP_CPP_REFACTORING_FN_INSERTER_H_ +#endif // CARBON_MIGRATE_CPP_CPP_REFACTORING_FN_INSERTER_H_ diff --git a/migrate_cpp/cpp_refactoring/for_range.h b/migrate_cpp/cpp_refactoring/for_range.h index d8feb9fff3b9..66302f20d015 100644 --- a/migrate_cpp/cpp_refactoring/for_range.h +++ b/migrate_cpp/cpp_refactoring/for_range.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef MIGRATE_CPP_CPP_REFACTORING_FOR_RANGE_H_ -#define MIGRATE_CPP_CPP_REFACTORING_FOR_RANGE_H_ +#ifndef CARBON_MIGRATE_CPP_CPP_REFACTORING_FOR_RANGE_H_ +#define CARBON_MIGRATE_CPP_CPP_REFACTORING_FOR_RANGE_H_ #include "migrate_cpp/cpp_refactoring/matcher.h" @@ -28,4 +28,4 @@ class ForRangeFactory : public MatcherFactoryBase { } // namespace Carbon -#endif // MIGRATE_CPP_CPP_REFACTORING_FOR_RANGE_H_ +#endif // CARBON_MIGRATE_CPP_CPP_REFACTORING_FOR_RANGE_H_ diff --git a/migrate_cpp/cpp_refactoring/matcher.h b/migrate_cpp/cpp_refactoring/matcher.h index 4ef3bbef1dd6..f6eab1264209 100644 --- a/migrate_cpp/cpp_refactoring/matcher.h +++ b/migrate_cpp/cpp_refactoring/matcher.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef MIGRATE_CPP_CPP_REFACTORING_MATCHER_H_ -#define MIGRATE_CPP_CPP_REFACTORING_MATCHER_H_ +#ifndef CARBON_MIGRATE_CPP_CPP_REFACTORING_MATCHER_H_ +#define CARBON_MIGRATE_CPP_CPP_REFACTORING_MATCHER_H_ #include "clang/ASTMatchers/ASTMatchFinder.h" #include "clang/Lex/Lexer.h" @@ -92,4 +92,4 @@ class MatcherFactoryBase : public MatcherFactory { } // namespace Carbon -#endif // MIGRATE_CPP_CPP_REFACTORING_MATCHER_H_ +#endif // CARBON_MIGRATE_CPP_CPP_REFACTORING_MATCHER_H_ diff --git a/migrate_cpp/cpp_refactoring/matcher_manager.h b/migrate_cpp/cpp_refactoring/matcher_manager.h index 72effe31b918..c9f4d4075dc1 100644 --- a/migrate_cpp/cpp_refactoring/matcher_manager.h +++ b/migrate_cpp/cpp_refactoring/matcher_manager.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef MIGRATE_CPP_CPP_REFACTORING_MATCHER_MANAGER_H_ -#define MIGRATE_CPP_CPP_REFACTORING_MATCHER_MANAGER_H_ +#ifndef CARBON_MIGRATE_CPP_CPP_REFACTORING_MATCHER_MANAGER_H_ +#define CARBON_MIGRATE_CPP_CPP_REFACTORING_MATCHER_MANAGER_H_ #include "clang/ASTMatchers/ASTMatchFinder.h" #include "clang/Tooling/Core/Replacement.h" @@ -55,4 +55,4 @@ class MatcherManager { } // namespace Carbon -#endif // MIGRATE_CPP_CPP_REFACTORING_MATCHER_MANAGER_H_ +#endif // CARBON_MIGRATE_CPP_CPP_REFACTORING_MATCHER_MANAGER_H_ diff --git a/migrate_cpp/cpp_refactoring/matcher_test_base.h b/migrate_cpp/cpp_refactoring/matcher_test_base.h index f281c62b45ec..8ecbc2312954 100644 --- a/migrate_cpp/cpp_refactoring/matcher_test_base.h +++ b/migrate_cpp/cpp_refactoring/matcher_test_base.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef MIGRATE_CPP_CPP_REFACTORING_MATCHER_TEST_BASE_H_ -#define MIGRATE_CPP_CPP_REFACTORING_MATCHER_TEST_BASE_H_ +#ifndef CARBON_MIGRATE_CPP_CPP_REFACTORING_MATCHER_TEST_BASE_H_ +#define CARBON_MIGRATE_CPP_CPP_REFACTORING_MATCHER_TEST_BASE_H_ #include #include @@ -63,4 +63,4 @@ class MatcherTestBase : public ::testing::Test { } // namespace Carbon::Testing -#endif // MIGRATE_CPP_CPP_REFACTORING_MATCHER_TEST_BASE_H_ +#endif // CARBON_MIGRATE_CPP_CPP_REFACTORING_MATCHER_TEST_BASE_H_ diff --git a/migrate_cpp/cpp_refactoring/var_decl.h b/migrate_cpp/cpp_refactoring/var_decl.h index 9adaac4e114c..45d29c5673f8 100644 --- a/migrate_cpp/cpp_refactoring/var_decl.h +++ b/migrate_cpp/cpp_refactoring/var_decl.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef MIGRATE_CPP_CPP_REFACTORING_VAR_DECL_H_ -#define MIGRATE_CPP_CPP_REFACTORING_VAR_DECL_H_ +#ifndef CARBON_MIGRATE_CPP_CPP_REFACTORING_VAR_DECL_H_ +#define CARBON_MIGRATE_CPP_CPP_REFACTORING_VAR_DECL_H_ #include "migrate_cpp/cpp_refactoring/matcher.h" @@ -28,4 +28,4 @@ class VarDeclFactory : public MatcherFactoryBase { } // namespace Carbon -#endif // MIGRATE_CPP_CPP_REFACTORING_VAR_DECL_H_ +#endif // CARBON_MIGRATE_CPP_CPP_REFACTORING_VAR_DECL_H_ diff --git a/scripts/check_header_guards.py b/scripts/check_header_guards.py index e0e58dfb19d3..c6bcd6a7bd8b 100755 --- a/scripts/check_header_guards.py +++ b/scripts/check_header_guards.py @@ -56,7 +56,8 @@ def check_path(path: Path) -> bool: with path.open() as f: lines = f.readlines() - guard = str(path).upper().replace("/", "_").replace(".", "_") + "_" + guard_path = str(path).upper().replace("/", "_").replace(".", "_") + guard = f"CARBON_{guard_path}_" ifndef = find_guard(lines, "#ifndef ([A-Z_]+_H_)", False) define = find_guard(lines, "#define ([A-Z_]+_H_)", False) endif = find_guard(lines, "#endif(?: // ([A-Z_]+_H_))?", True) diff --git a/toolchain/common/yaml_test_helpers.h b/toolchain/common/yaml_test_helpers.h index 684d9bd442e4..507252295d9c 100644 --- a/toolchain/common/yaml_test_helpers.h +++ b/toolchain/common/yaml_test_helpers.h @@ -44,8 +44,8 @@ // On match failure, Yaml::Values are printed as C++ code that can be used to // recreate the value, for easy copy-pasting into test expectations. -#ifndef TOOLCHAIN_COMMON_YAML_TEST_HELPERS_H_ -#define TOOLCHAIN_COMMON_YAML_TEST_HELPERS_H_ +#ifndef CARBON_TOOLCHAIN_COMMON_YAML_TEST_HELPERS_H_ +#define CARBON_TOOLCHAIN_COMMON_YAML_TEST_HELPERS_H_ #include #include @@ -146,4 +146,4 @@ MATCHER_P(Scalar, value, } // namespace Carbon::Testing::Yaml -#endif // TOOLCHAIN_COMMON_YAML_TEST_HELPERS_H_ +#endif // CARBON_TOOLCHAIN_COMMON_YAML_TEST_HELPERS_H_ diff --git a/toolchain/diagnostics/diagnostic_emitter.h b/toolchain/diagnostics/diagnostic_emitter.h index ff84435dfd01..cfe9d0e1425c 100644 --- a/toolchain/diagnostics/diagnostic_emitter.h +++ b/toolchain/diagnostics/diagnostic_emitter.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_DIAGNOSTICS_DIAGNOSTIC_EMITTER_H_ -#define TOOLCHAIN_DIAGNOSTICS_DIAGNOSTIC_EMITTER_H_ +#ifndef CARBON_TOOLCHAIN_DIAGNOSTICS_DIAGNOSTIC_EMITTER_H_ +#define CARBON_TOOLCHAIN_DIAGNOSTICS_DIAGNOSTIC_EMITTER_H_ #include #include @@ -227,4 +227,4 @@ class ErrorTrackingDiagnosticConsumer : public DiagnosticConsumer { } // namespace Carbon -#endif // TOOLCHAIN_DIAGNOSTICS_DIAGNOSTIC_EMITTER_H_ +#endif // CARBON_TOOLCHAIN_DIAGNOSTICS_DIAGNOSTIC_EMITTER_H_ diff --git a/toolchain/diagnostics/diagnostic_kind.h b/toolchain/diagnostics/diagnostic_kind.h index 73d2c53703e8..1a8ed9f08fab 100644 --- a/toolchain/diagnostics/diagnostic_kind.h +++ b/toolchain/diagnostics/diagnostic_kind.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_DIAGNOSTICS_DIAGNOSTIC_KIND_H_ -#define TOOLCHAIN_DIAGNOSTICS_DIAGNOSTIC_KIND_H_ +#ifndef CARBON_TOOLCHAIN_DIAGNOSTICS_DIAGNOSTIC_KIND_H_ +#define CARBON_TOOLCHAIN_DIAGNOSTICS_DIAGNOSTIC_KIND_H_ #include "common/ostream.h" #include "llvm/ADT/StringRef.h" @@ -34,4 +34,4 @@ inline auto operator<<(std::ostream& out, DiagnosticKind kind) } // namespace Carbon -#endif // TOOLCHAIN_DIAGNOSTICS_DIAGNOSTIC_KIND_H_ +#endif // CARBON_TOOLCHAIN_DIAGNOSTICS_DIAGNOSTIC_KIND_H_ diff --git a/toolchain/diagnostics/mocks.h b/toolchain/diagnostics/mocks.h index fbfc89cf1814..b51f864cca74 100644 --- a/toolchain/diagnostics/mocks.h +++ b/toolchain/diagnostics/mocks.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_DIAGNOSTICS_MOCKS_H_ -#define TOOLCHAIN_DIAGNOSTICS_MOCKS_H_ +#ifndef CARBON_TOOLCHAIN_DIAGNOSTICS_MOCKS_H_ +#define CARBON_TOOLCHAIN_DIAGNOSTICS_MOCKS_H_ #include @@ -52,4 +52,4 @@ void PrintTo(DiagnosticLevel level, std::ostream* os); } // namespace Carbon -#endif // TOOLCHAIN_DIAGNOSTICS_MOCKS_H_ +#endif // CARBON_TOOLCHAIN_DIAGNOSTICS_MOCKS_H_ diff --git a/toolchain/diagnostics/null_diagnostics.h b/toolchain/diagnostics/null_diagnostics.h index 5ff3bcf106e3..91bfd785c30b 100644 --- a/toolchain/diagnostics/null_diagnostics.h +++ b/toolchain/diagnostics/null_diagnostics.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_DIAGNOSTICS_NULL_DIAGNOSTICS_H_ -#define TOOLCHAIN_DIAGNOSTICS_NULL_DIAGNOSTICS_H_ +#ifndef CARBON_TOOLCHAIN_DIAGNOSTICS_NULL_DIAGNOSTICS_H_ +#define CARBON_TOOLCHAIN_DIAGNOSTICS_NULL_DIAGNOSTICS_H_ #include "toolchain/diagnostics/diagnostic_emitter.h" @@ -38,4 +38,4 @@ inline auto NullDiagnosticEmitter() -> DiagnosticEmitter& { } // namespace Carbon -#endif // TOOLCHAIN_DIAGNOSTICS_NULL_DIAGNOSTICS_H_ +#endif // CARBON_TOOLCHAIN_DIAGNOSTICS_NULL_DIAGNOSTICS_H_ diff --git a/toolchain/diagnostics/sorting_diagnostic_consumer.h b/toolchain/diagnostics/sorting_diagnostic_consumer.h index 57ac3a685a54..4cc881c5873a 100644 --- a/toolchain/diagnostics/sorting_diagnostic_consumer.h +++ b/toolchain/diagnostics/sorting_diagnostic_consumer.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_DIAGNOSTICS_SORTING_DIAGNOSTIC_CONSUMER_H_ -#define TOOLCHAIN_DIAGNOSTICS_SORTING_DIAGNOSTIC_CONSUMER_H_ +#ifndef CARBON_TOOLCHAIN_DIAGNOSTICS_SORTING_DIAGNOSTIC_CONSUMER_H_ +#define CARBON_TOOLCHAIN_DIAGNOSTICS_SORTING_DIAGNOSTIC_CONSUMER_H_ #include "common/check.h" #include "llvm/ADT/STLExtras.h" @@ -43,4 +43,4 @@ class SortingDiagnosticConsumer : public DiagnosticConsumer { } // namespace Carbon -#endif // TOOLCHAIN_DIAGNOSTICS_SORTING_DIAGNOSTIC_CONSUMER_H_ +#endif // CARBON_TOOLCHAIN_DIAGNOSTICS_SORTING_DIAGNOSTIC_CONSUMER_H_ diff --git a/toolchain/driver/driver.h b/toolchain/driver/driver.h index d999fa9f9916..ccc7eebe9126 100644 --- a/toolchain/driver/driver.h +++ b/toolchain/driver/driver.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_DRIVER_DRIVER_H_ -#define TOOLCHAIN_DRIVER_DRIVER_H_ +#ifndef CARBON_TOOLCHAIN_DRIVER_DRIVER_H_ +#define CARBON_TOOLCHAIN_DRIVER_DRIVER_H_ #include @@ -81,4 +81,4 @@ class Driver { } // namespace Carbon -#endif // TOOLCHAIN_DRIVER_DRIVER_H_ +#endif // CARBON_TOOLCHAIN_DRIVER_DRIVER_H_ diff --git a/toolchain/lexer/character_set.h b/toolchain/lexer/character_set.h index 101eb3029197..d243746b9c4d 100644 --- a/toolchain/lexer/character_set.h +++ b/toolchain/lexer/character_set.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_LEXER_CHARACTER_SET_H_ -#define TOOLCHAIN_LEXER_CHARACTER_SET_H_ +#ifndef CARBON_TOOLCHAIN_LEXER_CHARACTER_SET_H_ +#define CARBON_TOOLCHAIN_LEXER_CHARACTER_SET_H_ #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringRef.h" @@ -74,4 +74,4 @@ inline auto IsSpace(char c) -> bool { } // namespace Carbon -#endif // TOOLCHAIN_LEXER_CHARACTER_SET_H_ +#endif // CARBON_TOOLCHAIN_LEXER_CHARACTER_SET_H_ diff --git a/toolchain/lexer/lex_helpers.h b/toolchain/lexer/lex_helpers.h index f45c5af27b20..5728610f083d 100644 --- a/toolchain/lexer/lex_helpers.h +++ b/toolchain/lexer/lex_helpers.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_LEXER_LEX_HELPERS_H_ -#define TOOLCHAIN_LEXER_LEX_HELPERS_H_ +#ifndef CARBON_TOOLCHAIN_LEXER_LEX_HELPERS_H_ +#define CARBON_TOOLCHAIN_LEXER_LEX_HELPERS_H_ #include "toolchain/diagnostics/diagnostic_emitter.h" @@ -16,4 +16,4 @@ auto CanLexInteger(DiagnosticEmitter& emitter, } // namespace Carbon -#endif // TOOLCHAIN_LEXER_LEX_HELPERS_H_ +#endif // CARBON_TOOLCHAIN_LEXER_LEX_HELPERS_H_ diff --git a/toolchain/lexer/numeric_literal.h b/toolchain/lexer/numeric_literal.h index 52076a4713d4..52fb693b86d5 100644 --- a/toolchain/lexer/numeric_literal.h +++ b/toolchain/lexer/numeric_literal.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_LEXER_NUMERIC_LITERAL_H_ -#define TOOLCHAIN_LEXER_NUMERIC_LITERAL_H_ +#ifndef CARBON_TOOLCHAIN_LEXER_NUMERIC_LITERAL_H_ +#define CARBON_TOOLCHAIN_LEXER_NUMERIC_LITERAL_H_ #include #include @@ -74,4 +74,4 @@ class LexedNumericLiteral { } // namespace Carbon -#endif // TOOLCHAIN_LEXER_NUMERIC_LITERAL_H_ +#endif // CARBON_TOOLCHAIN_LEXER_NUMERIC_LITERAL_H_ diff --git a/toolchain/lexer/string_literal.h b/toolchain/lexer/string_literal.h index 800e9c96c71c..557ae3059099 100644 --- a/toolchain/lexer/string_literal.h +++ b/toolchain/lexer/string_literal.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_LEXER_STRING_LITERAL_H_ -#define TOOLCHAIN_LEXER_STRING_LITERAL_H_ +#ifndef CARBON_TOOLCHAIN_LEXER_STRING_LITERAL_H_ +#define CARBON_TOOLCHAIN_LEXER_STRING_LITERAL_H_ #include @@ -62,4 +62,4 @@ class LexedStringLiteral { } // namespace Carbon -#endif // TOOLCHAIN_LEXER_STRING_LITERAL_H_ +#endif // CARBON_TOOLCHAIN_LEXER_STRING_LITERAL_H_ diff --git a/toolchain/lexer/test_helpers.h b/toolchain/lexer/test_helpers.h index afadea56918b..6f4ebc4590e4 100644 --- a/toolchain/lexer/test_helpers.h +++ b/toolchain/lexer/test_helpers.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_LEXER_TEST_HELPERS_H_ -#define TOOLCHAIN_LEXER_TEST_HELPERS_H_ +#ifndef CARBON_TOOLCHAIN_LEXER_TEST_HELPERS_H_ +#define CARBON_TOOLCHAIN_LEXER_TEST_HELPERS_H_ #include @@ -53,4 +53,4 @@ class SingleTokenDiagnosticTranslator } // namespace Carbon::Testing -#endif // TOOLCHAIN_LEXER_TEST_HELPERS_H_ +#endif // CARBON_TOOLCHAIN_LEXER_TEST_HELPERS_H_ diff --git a/toolchain/lexer/token_kind.h b/toolchain/lexer/token_kind.h index d48af233381a..2ccc67708a87 100644 --- a/toolchain/lexer/token_kind.h +++ b/toolchain/lexer/token_kind.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_LEXER_TOKEN_KIND_H_ -#define TOOLCHAIN_LEXER_TOKEN_KIND_H_ +#ifndef CARBON_TOOLCHAIN_LEXER_TOKEN_KIND_H_ +#define CARBON_TOOLCHAIN_LEXER_TOKEN_KIND_H_ #include #include @@ -111,4 +111,4 @@ class TokenKind { } // namespace Carbon -#endif // TOOLCHAIN_LEXER_TOKEN_KIND_H_ +#endif // CARBON_TOOLCHAIN_LEXER_TOKEN_KIND_H_ diff --git a/toolchain/lexer/tokenized_buffer.h b/toolchain/lexer/tokenized_buffer.h index 63dc9f681da1..a9c5c059edb2 100644 --- a/toolchain/lexer/tokenized_buffer.h +++ b/toolchain/lexer/tokenized_buffer.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_LEXER_TOKENIZED_BUFFER_H_ -#define TOOLCHAIN_LEXER_TOKENIZED_BUFFER_H_ +#ifndef CARBON_TOOLCHAIN_LEXER_TOKENIZED_BUFFER_H_ +#define CARBON_TOOLCHAIN_LEXER_TOKENIZED_BUFFER_H_ #include #include @@ -496,4 +496,4 @@ using TokenDiagnosticEmitter = DiagnosticEmitter; } // namespace Carbon -#endif // TOOLCHAIN_LEXER_TOKENIZED_BUFFER_H_ +#endif // CARBON_TOOLCHAIN_LEXER_TOKENIZED_BUFFER_H_ diff --git a/toolchain/lexer/tokenized_buffer_test_helpers.h b/toolchain/lexer/tokenized_buffer_test_helpers.h index 10f3c09ab72b..e0acb340669d 100644 --- a/toolchain/lexer/tokenized_buffer_test_helpers.h +++ b/toolchain/lexer/tokenized_buffer_test_helpers.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_LEXER_TOKENIZED_BUFFER_TEST_HELPERS_H_ -#define TOOLCHAIN_LEXER_TOKENIZED_BUFFER_TEST_HELPERS_H_ +#ifndef CARBON_TOOLCHAIN_LEXER_TOKENIZED_BUFFER_TEST_HELPERS_H_ +#define CARBON_TOOLCHAIN_LEXER_TOKENIZED_BUFFER_TEST_HELPERS_H_ #include @@ -156,4 +156,4 @@ MATCHER_P(HasTokens, raw_all_expected, "") { } // namespace Testing } // namespace Carbon -#endif // TOOLCHAIN_LEXER_TOKENIZED_BUFFER_TEST_HELPERS_H_ +#endif // CARBON_TOOLCHAIN_LEXER_TOKENIZED_BUFFER_TEST_HELPERS_H_ diff --git a/toolchain/parser/parse_node_kind.h b/toolchain/parser/parse_node_kind.h index bbd343734d0c..657c53905974 100644 --- a/toolchain/parser/parse_node_kind.h +++ b/toolchain/parser/parse_node_kind.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_PARSER_PARSE_NODE_KIND_H_ -#define TOOLCHAIN_PARSER_PARSE_NODE_KIND_H_ +#ifndef CARBON_TOOLCHAIN_PARSER_PARSE_NODE_KIND_H_ +#define CARBON_TOOLCHAIN_PARSER_PARSE_NODE_KIND_H_ #include #include @@ -71,4 +71,4 @@ static_assert(sizeof(ParseNodeKind) == 1, "Kind objects include padding!"); } // namespace Carbon -#endif // TOOLCHAIN_PARSER_PARSE_NODE_KIND_H_ +#endif // CARBON_TOOLCHAIN_PARSER_PARSE_NODE_KIND_H_ diff --git a/toolchain/parser/parse_test_helpers.h b/toolchain/parser/parse_test_helpers.h index c0b98bd6639f..3b922cf79b29 100644 --- a/toolchain/parser/parse_test_helpers.h +++ b/toolchain/parser/parse_test_helpers.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_PARSER_PARSE_TEST_HELPERS_H_ -#define TOOLCHAIN_PARSER_PARSE_TEST_HELPERS_H_ +#ifndef CARBON_TOOLCHAIN_PARSER_PARSE_TEST_HELPERS_H_ +#define CARBON_TOOLCHAIN_PARSER_PARSE_TEST_HELPERS_H_ #include @@ -343,4 +343,4 @@ auto MatchFunctionWithBody(Args... args) -> ExpectedNode { } // namespace Testing } // namespace Carbon -#endif // TOOLCHAIN_PARSER_PARSE_TEST_HELPERS_H_ +#endif // CARBON_TOOLCHAIN_PARSER_PARSE_TEST_HELPERS_H_ diff --git a/toolchain/parser/parse_tree.h b/toolchain/parser/parse_tree.h index de88ecf1590c..e520a5469047 100644 --- a/toolchain/parser/parse_tree.h +++ b/toolchain/parser/parse_tree.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_PARSER_PARSE_TREE_H_ -#define TOOLCHAIN_PARSER_PARSE_TREE_H_ +#ifndef CARBON_TOOLCHAIN_PARSER_PARSE_TREE_H_ +#define CARBON_TOOLCHAIN_PARSER_PARSE_TREE_H_ #include @@ -376,4 +376,4 @@ class ParseTree::SiblingIterator } // namespace Carbon -#endif // TOOLCHAIN_PARSER_PARSE_TREE_H_ +#endif // CARBON_TOOLCHAIN_PARSER_PARSE_TREE_H_ diff --git a/toolchain/parser/parser_impl.h b/toolchain/parser/parser_impl.h index 13cdb467aeb1..9d379f5dd7bc 100644 --- a/toolchain/parser/parser_impl.h +++ b/toolchain/parser/parser_impl.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_PARSER_PARSER_IMPL_H_ -#define TOOLCHAIN_PARSER_PARSER_IMPL_H_ +#ifndef CARBON_TOOLCHAIN_PARSER_PARSER_IMPL_H_ +#define CARBON_TOOLCHAIN_PARSER_PARSER_IMPL_H_ #include "llvm/ADT/Optional.h" #include "toolchain/diagnostics/diagnostic_emitter.h" @@ -286,4 +286,4 @@ class ParseTree::Parser { } // namespace Carbon -#endif // TOOLCHAIN_PARSER_PARSER_IMPL_H_ +#endif // CARBON_TOOLCHAIN_PARSER_PARSER_IMPL_H_ diff --git a/toolchain/parser/precedence.h b/toolchain/parser/precedence.h index 97bf392b2f16..d03721cc89cf 100644 --- a/toolchain/parser/precedence.h +++ b/toolchain/parser/precedence.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_PARSER_PRECEDENCE_H_ -#define TOOLCHAIN_PARSER_PRECEDENCE_H_ +#ifndef CARBON_TOOLCHAIN_PARSER_PRECEDENCE_H_ +#define CARBON_TOOLCHAIN_PARSER_PRECEDENCE_H_ #include "llvm/ADT/Optional.h" #include "toolchain/lexer/token_kind.h" @@ -97,4 +97,4 @@ struct PrecedenceGroup::Trailing { } // namespace Carbon -#endif // TOOLCHAIN_PARSER_PRECEDENCE_H_ +#endif // CARBON_TOOLCHAIN_PARSER_PRECEDENCE_H_ diff --git a/toolchain/semantics/function.h b/toolchain/semantics/function.h index ece60cff3ff8..e94916341ab0 100644 --- a/toolchain/semantics/function.h +++ b/toolchain/semantics/function.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_SEMANTICS_FUNCTION_H_ -#define TOOLCHAIN_SEMANTICS_FUNCTION_H_ +#ifndef CARBON_TOOLCHAIN_SEMANTICS_FUNCTION_H_ +#define CARBON_TOOLCHAIN_SEMANTICS_FUNCTION_H_ #include "toolchain/parser/parse_tree.h" @@ -28,4 +28,4 @@ class Function { } // namespace Carbon::Semantics -#endif // TOOLCHAIN_SEMANTICS_FUNCTION_H_ +#endif // CARBON_TOOLCHAIN_SEMANTICS_FUNCTION_H_ diff --git a/toolchain/semantics/semantics_ir.h b/toolchain/semantics/semantics_ir.h index b23d14f57c2f..1c618db5cd9d 100644 --- a/toolchain/semantics/semantics_ir.h +++ b/toolchain/semantics/semantics_ir.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_SEMANTICS_SEMANTICS_IR_H_ -#define TOOLCHAIN_SEMANTICS_SEMANTICS_IR_H_ +#ifndef CARBON_TOOLCHAIN_SEMANTICS_SEMANTICS_IR_H_ +#define CARBON_TOOLCHAIN_SEMANTICS_SEMANTICS_IR_H_ #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringMap.h" @@ -75,4 +75,4 @@ class SemanticsIR { } // namespace Carbon -#endif // TOOLCHAIN_SEMANTICS_SEMANTICS_IR_H_ +#endif // CARBON_TOOLCHAIN_SEMANTICS_SEMANTICS_IR_H_ diff --git a/toolchain/semantics/semantics_ir_factory.h b/toolchain/semantics/semantics_ir_factory.h index bf3b1c9b5c8d..7c23141917b9 100644 --- a/toolchain/semantics/semantics_ir_factory.h +++ b/toolchain/semantics/semantics_ir_factory.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_SEMANTICS_SEMANTICS_IR_FACTORY_H_ -#define TOOLCHAIN_SEMANTICS_SEMANTICS_IR_FACTORY_H_ +#ifndef CARBON_TOOLCHAIN_SEMANTICS_SEMANTICS_IR_FACTORY_H_ +#define CARBON_TOOLCHAIN_SEMANTICS_SEMANTICS_IR_FACTORY_H_ #include @@ -37,4 +37,4 @@ class SemanticsIRFactory { } // namespace Carbon -#endif // TOOLCHAIN_SEMANTICS_SEMANTICS_IR_FACTORY_H_ +#endif // CARBON_TOOLCHAIN_SEMANTICS_SEMANTICS_IR_FACTORY_H_ diff --git a/toolchain/source/source_buffer.h b/toolchain/source/source_buffer.h index 24ba7b9b81d7..0473dc8d312a 100644 --- a/toolchain/source/source_buffer.h +++ b/toolchain/source/source_buffer.h @@ -2,8 +2,8 @@ // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#ifndef TOOLCHAIN_SOURCE_SOURCE_BUFFER_H_ -#define TOOLCHAIN_SOURCE_SOURCE_BUFFER_H_ +#ifndef CARBON_TOOLCHAIN_SOURCE_SOURCE_BUFFER_H_ +#define CARBON_TOOLCHAIN_SOURCE_SOURCE_BUFFER_H_ #include #include @@ -74,4 +74,4 @@ class SourceBuffer { } // namespace Carbon -#endif // TOOLCHAIN_SOURCE_SOURCE_BUFFER_H_ +#endif // CARBON_TOOLCHAIN_SOURCE_SOURCE_BUFFER_H_