r215202 - Add missing header guards.
Benjamin Kramer
benny.kra at googlemail.com
Fri Aug 8 06:24:20 PDT 2014
Author: d0k
Date: Fri Aug 8 08:24:19 2014
New Revision: 215202
URL: http://llvm.org/viewvc/llvm-project?rev=215202&view=rev
Log:
Add missing header guards.
Modified:
cfe/trunk/tools/diagtool/DiagnosticNames.h
cfe/trunk/tools/libclang/IndexingContext.h
cfe/trunk/unittests/AST/MatchVerifier.h
cfe/trunk/utils/TableGen/TableGenBackends.h
Modified: cfe/trunk/tools/diagtool/DiagnosticNames.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/diagtool/DiagnosticNames.h?rev=215202&r1=215201&r2=215202&view=diff
==============================================================================
--- cfe/trunk/tools/diagtool/DiagnosticNames.h (original)
+++ cfe/trunk/tools/diagtool/DiagnosticNames.h Fri Aug 8 08:24:19 2014
@@ -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
Modified: cfe/trunk/tools/libclang/IndexingContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/IndexingContext.h?rev=215202&r1=215201&r2=215202&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/IndexingContext.h (original)
+++ cfe/trunk/tools/libclang/IndexingContext.h Fri Aug 8 08:24:19 2014
@@ -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
Modified: cfe/trunk/unittests/AST/MatchVerifier.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/MatchVerifier.h?rev=215202&r1=215201&r2=215202&view=diff
==============================================================================
--- cfe/trunk/unittests/AST/MatchVerifier.h (original)
+++ cfe/trunk/unittests/AST/MatchVerifier.h Fri Aug 8 08:24:19 2014
@@ -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
Modified: cfe/trunk/utils/TableGen/TableGenBackends.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/TableGen/TableGenBackends.h?rev=215202&r1=215201&r2=215202&view=diff
==============================================================================
--- cfe/trunk/utils/TableGen/TableGenBackends.h (original)
+++ cfe/trunk/utils/TableGen/TableGenBackends.h Fri Aug 8 08:24:19 2014
@@ -13,6 +13,9 @@
//
//===----------------------------------------------------------------------===//
+#ifndef LLVM_CLANG_UTILS_TABLEGEN_TABLEGENBACKENDS_H
+#define LLVM_CLANG_UTILS_TABLEGEN_TABLEGENBACKENDS_H
+
#include <string>
namespace llvm {
@@ -68,3 +71,5 @@ void EmitNeonTest2(RecordKeeper &Records
void EmitClangAttrDocs(RecordKeeper &Records, raw_ostream &OS);
} // end namespace clang
+
+#endif
More information about the cfe-commits
mailing list