From: Benjamin Kramer Date: Fri, 8 Aug 2014 13:24:19 +0000 (+0000) Subject: Add missing header guards. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6ac242f5eb6973c96f194d4ab1a573bf766c446;p=clang Add missing header guards. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215202 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/diagtool/DiagnosticNames.h b/tools/diagtool/DiagnosticNames.h index 2571b19969..95be7b2138 100644 --- a/tools/diagtool/DiagnosticNames.h +++ b/tools/diagtool/DiagnosticNames.h @@ -7,6 +7,9 @@ // //===----------------------------------------------------------------------===// +#ifndef DIAGTOOL_DIAGNOSTICNAMES_H +#define DIAGTOOL_DIAGNOSTICNAMES_H + #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/DataTypes.h" @@ -112,3 +115,4 @@ namespace diagtool { } } // end namespace diagtool +#endif diff --git a/tools/libclang/IndexingContext.h b/tools/libclang/IndexingContext.h index c3851cd7e9..09207baf5a 100644 --- a/tools/libclang/IndexingContext.h +++ b/tools/libclang/IndexingContext.h @@ -7,6 +7,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_CLANG_LIBCLANG_INDEXINGCONTEXT_H +#define LLVM_CLANG_LIBCLANG_INDEXINGCONTEXT_H + #include "CXCursor.h" #include "Index_Internal.h" #include "clang/AST/DeclGroup.h" @@ -517,3 +520,5 @@ inline T *ScratchAlloc::allocate() { } }} // end clang::cxindex + +#endif diff --git a/unittests/AST/MatchVerifier.h b/unittests/AST/MatchVerifier.h index 1e5a0d256e..e6593913b7 100644 --- a/unittests/AST/MatchVerifier.h +++ b/unittests/AST/MatchVerifier.h @@ -16,6 +16,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_CLANG_UNITTESTS_AST_MATCHVERIFIER_H +#define LLVM_CLANG_UNITTESTS_AST_MATCHVERIFIER_H + #include "clang/AST/ASTContext.h" #include "clang/ASTMatchers/ASTMatchFinder.h" #include "clang/ASTMatchers/ASTMatchers.h" @@ -288,3 +291,5 @@ private: } // end namespace ast_matchers } // end namespace clang + +#endif diff --git a/utils/TableGen/TableGenBackends.h b/utils/TableGen/TableGenBackends.h index 78745f1aac..4adf368cbd 100644 --- a/utils/TableGen/TableGenBackends.h +++ b/utils/TableGen/TableGenBackends.h @@ -13,6 +13,9 @@ // //===----------------------------------------------------------------------===// +#ifndef LLVM_CLANG_UTILS_TABLEGEN_TABLEGENBACKENDS_H +#define LLVM_CLANG_UTILS_TABLEGEN_TABLEGENBACKENDS_H + #include namespace llvm { @@ -68,3 +71,5 @@ void EmitNeonTest2(RecordKeeper &Records, raw_ostream &OS); void EmitClangAttrDocs(RecordKeeper &Records, raw_ostream &OS); } // end namespace clang + +#endif