From: Argyrios Kyrtzidis Date: Mon, 3 Sep 2018 16:26:36 +0000 (+0000) Subject: Add header guards to some headers that are missing them X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00b030975454c8f4efacaa612e83a51bcdca56ee;p=clang Add header guards to some headers that are missing them git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341324 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/ODRHash.h b/include/clang/AST/ODRHash.h index 75b3617892..0e52d3d854 100644 --- a/include/clang/AST/ODRHash.h +++ b/include/clang/AST/ODRHash.h @@ -13,6 +13,9 @@ /// //===----------------------------------------------------------------------===// +#ifndef LLVM_CLANG_AST_ODRHASH_H +#define LLVM_CLANG_AST_ODRHASH_H + #include "clang/AST/DeclarationName.h" #include "clang/AST/Type.h" #include "clang/AST/TemplateBase.h" @@ -91,3 +94,5 @@ public: }; } // end namespace clang + +#endif diff --git a/lib/CodeGen/MacroPPCallbacks.h b/lib/CodeGen/MacroPPCallbacks.h index 48c67e2d36..b87a4005d4 100644 --- a/lib/CodeGen/MacroPPCallbacks.h +++ b/lib/CodeGen/MacroPPCallbacks.h @@ -11,6 +11,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_CLANG_LIB_CODEGEN_MACROPPCALLBACKS_H +#define LLVM_CLANG_LIB_CODEGEN_MACROPPCALLBACKS_H + #include "clang/Lex/PPCallbacks.h" namespace llvm { @@ -116,3 +119,5 @@ public: }; } // end namespace clang + +#endif diff --git a/unittests/Rename/ClangRenameTest.h b/unittests/Rename/ClangRenameTest.h index 0933dd5aaf..e0f33674cf 100644 --- a/unittests/Rename/ClangRenameTest.h +++ b/unittests/Rename/ClangRenameTest.h @@ -7,6 +7,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_CLANG_UNITTESTS_RENAME_CLANGRENAMETEST_H +#define LLVM_CLANG_UNITTESTS_RENAME_CLANGRENAMETEST_H + #include "unittests/Tooling/RewriterTestContext.h" #include "clang/ASTMatchers/ASTMatchFinder.h" #include "clang/Basic/FileManager.h" @@ -110,3 +113,5 @@ protected: } // namespace test } // namespace clang_rename } // namesdpace clang + +#endif