summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2013-12-10 12:55:16 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2013-12-10 12:55:16 +0000
commitd440167b3f93e96bf16c6a1c5f185ddd83221150 (patch)
tree06e0897fd0eaf7bf051ef015c0f7680e8ce1bf13
parent382206229391f06a59a66b31e6abeed63b690a35 (diff)
clang-plugin: Add #ifdef guards to header files
-rw-r--r--clang-plugin/assertion-extracter.h5
-rw-r--r--clang-plugin/debug.h5
-rw-r--r--clang-plugin/gassert-attributes.h5
-rw-r--r--clang-plugin/gir-attributes.h5
4 files changed, 20 insertions, 0 deletions
diff --git a/clang-plugin/assertion-extracter.h b/clang-plugin/assertion-extracter.h
index c1c8093..191d9d1 100644
--- a/clang-plugin/assertion-extracter.h
+++ b/clang-plugin/assertion-extracter.h
@@ -20,6 +20,9 @@
* Philip Withnall <philip.withnall@collabora.co.uk>
*/
+#ifndef GNOME_CLANG_ASSERTION_EXTRACTER_H
+#define GNOME_CLANG_ASSERTION_EXTRACTER_H
+
#include <unordered_set>
#include <clang/AST/AST.h>
@@ -34,3 +37,5 @@ namespace AssertionExtracter {
Expr& assertion_expr, const ASTContext& context,
std::unordered_set<const ValueDecl*>& param_decls);
}
+
+#endif /* !GNOME_CLANG_ASSERTION_EXTRACTER_H */
diff --git a/clang-plugin/debug.h b/clang-plugin/debug.h
index d7f0e43..8c352c9 100644
--- a/clang-plugin/debug.h
+++ b/clang-plugin/debug.h
@@ -20,6 +20,9 @@
* Philip Withnall <philip.withnall@collabora.co.uk>
*/
+#ifndef GNOME_CLANG_DEBUG_H
+#define GNOME_CLANG_DEBUG_H
+
#ifdef ENABLE_DEBUG
#define DEBUG(M) llvm::errs () << M << "\n"
#define DEBUG_EXPR(M, E) llvm::errs () << M; \
@@ -31,3 +34,5 @@
#endif
#define WARN(M) llvm::errs () << "Warning: " << M << "\n"
+
+#endif /* !GNOME_CLANG_DEBUG_H */
diff --git a/clang-plugin/gassert-attributes.h b/clang-plugin/gassert-attributes.h
index 8265799..f06a177 100644
--- a/clang-plugin/gassert-attributes.h
+++ b/clang-plugin/gassert-attributes.h
@@ -20,6 +20,9 @@
* Philip Withnall <philip.withnall@collabora.co.uk>
*/
+#ifndef GNOME_CLANG_GASSERT_ATTRIBUTES_H
+#define GNOME_CLANG_GASSERT_ATTRIBUTES_H
+
#include <clang/AST/AST.h>
#include <clang/AST/ASTConsumer.h>
#include <clang/Frontend/CompilerInstance.h>
@@ -36,3 +39,5 @@ private:
public:
virtual bool HandleTopLevelDecl (DeclGroupRef decl_group);
};
+
+#endif /* !GNOME_CLANG_GASSERT_ATTRIBUTES_H */
diff --git a/clang-plugin/gir-attributes.h b/clang-plugin/gir-attributes.h
index f17b75a..e12165e 100644
--- a/clang-plugin/gir-attributes.h
+++ b/clang-plugin/gir-attributes.h
@@ -20,6 +20,9 @@
* Philip Withnall <philip.withnall@collabora.co.uk>
*/
+#ifndef GNOME_CLANG_GIR_ATTRIBUTES_H
+#define GNOME_CLANG_GIR_ATTRIBUTES_H
+
#include <clang/AST/AST.h>
#include <clang/AST/ASTConsumer.h>
@@ -53,3 +56,5 @@ private:
public:
virtual bool HandleTopLevelDecl (DeclGroupRef decl_group);
};
+
+#endif /* !GNOME_CLANG_GIR_ATTRIBUTES_H */