summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/ClangSACheckersEmitter.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-02-14 17:58:52 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-02-14 17:58:52 +0000
commit485969638f7f47ed86856567d07e644ec3945b96 (patch)
tree7b37eecc9e191a5947c6671bbe0aff181504f667 /llvm/utils/TableGen/ClangSACheckersEmitter.h
parent9170c73d26829cfbacbab1f218d5abb62c0f6f75 (diff)
downloadbcm5719-llvm-485969638f7f47ed86856567d07e644ec3945b96.tar.gz
bcm5719-llvm-485969638f7f47ed86856567d07e644ec3945b96.zip
Add the ClangSACheckersEmitter tablegen backend which will be used for the clang static analyzer.
llvm-svn: 125493
Diffstat (limited to 'llvm/utils/TableGen/ClangSACheckersEmitter.h')
-rw-r--r--llvm/utils/TableGen/ClangSACheckersEmitter.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/ClangSACheckersEmitter.h b/llvm/utils/TableGen/ClangSACheckersEmitter.h
new file mode 100644
index 00000000000..6bd16354732
--- /dev/null
+++ b/llvm/utils/TableGen/ClangSACheckersEmitter.h
@@ -0,0 +1,31 @@
+//===- ClangSACheckersEmitter.h - Generate Clang SA checkers tables -*- C++ -*-
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This tablegen backend emits Clang Static Analyzer checkers tables.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef CLANGSACHECKERS_EMITTER_H
+#define CLANGSACHECKERS_EMITTER_H
+
+#include "TableGenBackend.h"
+
+namespace llvm {
+
+class ClangSACheckersEmitter : public TableGenBackend {
+ RecordKeeper &Records;
+public:
+ explicit ClangSACheckersEmitter(RecordKeeper &R) : Records(R) {}
+
+ void run(raw_ostream &OS);
+};
+
+} // End llvm namespace
+
+#endif
OpenPOWER on IntegriCloud