r341324 - Add header guards to some headers that are missing them
Argyrios Kyrtzidis via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 3 09:26:36 PDT 2018
Author: akirtzidis
Date: Mon Sep 3 09:26:36 2018
New Revision: 341324
URL: http://llvm.org/viewvc/llvm-project?rev=341324&view=rev
Log:
Add header guards to some headers that are missing them
Modified:
cfe/trunk/include/clang/AST/ODRHash.h
cfe/trunk/lib/CodeGen/MacroPPCallbacks.h
cfe/trunk/unittests/Rename/ClangRenameTest.h
Modified: cfe/trunk/include/clang/AST/ODRHash.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ODRHash.h?rev=341324&r1=341323&r2=341324&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ODRHash.h (original)
+++ cfe/trunk/include/clang/AST/ODRHash.h Mon Sep 3 09:26:36 2018
@@ -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
Modified: cfe/trunk/lib/CodeGen/MacroPPCallbacks.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/MacroPPCallbacks.h?rev=341324&r1=341323&r2=341324&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/MacroPPCallbacks.h (original)
+++ cfe/trunk/lib/CodeGen/MacroPPCallbacks.h Mon Sep 3 09:26:36 2018
@@ -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
Modified: cfe/trunk/unittests/Rename/ClangRenameTest.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Rename/ClangRenameTest.h?rev=341324&r1=341323&r2=341324&view=diff
==============================================================================
--- cfe/trunk/unittests/Rename/ClangRenameTest.h (original)
+++ cfe/trunk/unittests/Rename/ClangRenameTest.h Mon Sep 3 09:26:36 2018
@@ -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
More information about the cfe-commits
mailing list