Преглед на файлове

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
Argyrios Kyrtzidis преди 7 години
родител
ревизия
00b0309754
променени са 3 файла, в които са добавени 15 реда и са изтрити 0 реда
  1. 5 0
      include/clang/AST/ODRHash.h
  2. 5 0
      lib/CodeGen/MacroPPCallbacks.h
  3. 5 0
      unittests/Rename/ClangRenameTest.h

+ 5 - 0
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/DeclarationName.h"
 #include "clang/AST/Type.h"
 #include "clang/AST/Type.h"
 #include "clang/AST/TemplateBase.h"
 #include "clang/AST/TemplateBase.h"
@@ -91,3 +94,5 @@ public:
 };
 };
 
 
 }  // end namespace clang
 }  // end namespace clang
+
+#endif

+ 5 - 0
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"
 #include "clang/Lex/PPCallbacks.h"
 
 
 namespace llvm {
 namespace llvm {
@@ -116,3 +119,5 @@ public:
 };
 };
 
 
 } // end namespace clang
 } // end namespace clang
+
+#endif

+ 5 - 0
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 "unittests/Tooling/RewriterTestContext.h"
 #include "clang/ASTMatchers/ASTMatchFinder.h"
 #include "clang/ASTMatchers/ASTMatchFinder.h"
 #include "clang/Basic/FileManager.h"
 #include "clang/Basic/FileManager.h"
@@ -110,3 +113,5 @@ protected:
 } // namespace test
 } // namespace test
 } // namespace clang_rename
 } // namespace clang_rename
 } // namesdpace clang
 } // namesdpace clang
+
+#endif