]> granicus.if.org Git - clang/commitdiff
[analyzer] Move Checkers.inc to clang/include/...
authorChih-Hung Hsieh <chh@google.com>
Thu, 28 Apr 2016 01:09:09 +0000 (01:09 +0000)
committerChih-Hung Hsieh <chh@google.com>
Thu, 28 Apr 2016 01:09:09 +0000 (01:09 +0000)
Simplify sharing of Checkers.inc with other files like ClangTidy.cpp.

Differential Revision: http://reviews.llvm.org/19393

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267832 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/CMakeLists.txt
include/clang/StaticAnalyzer/Checkers/CMakeLists.txt [new file with mode: 0644]
include/clang/StaticAnalyzer/Checkers/Checkers.td [moved from lib/StaticAnalyzer/Checkers/Checkers.td with 100% similarity]
lib/StaticAnalyzer/Checkers/CMakeLists.txt
lib/StaticAnalyzer/Checkers/ClangCheckers.cpp
lib/StaticAnalyzer/Checkers/ClangSACheckers.h

index 1d8aecd3b24e41540ffdc6211abaa9e5b1a9d971..feb81f0686caca1828bb21ab29fde0db2659dd96 100644 (file)
@@ -4,3 +4,4 @@ add_subdirectory(Driver)
 add_subdirectory(Parse)
 add_subdirectory(Sema)
 add_subdirectory(Serialization)
+add_subdirectory(StaticAnalyzer/Checkers)
diff --git a/include/clang/StaticAnalyzer/Checkers/CMakeLists.txt b/include/clang/StaticAnalyzer/Checkers/CMakeLists.txt
new file mode 100644 (file)
index 0000000..37dd9e8
--- /dev/null
@@ -0,0 +1,4 @@
+clang_tablegen(Checkers.inc -gen-clang-sa-checkers
+  -I ${CMAKE_CURRENT_SOURCE_DIR}/../../../
+  SOURCE Checkers.td
+  TARGET ClangSACheckers)
index e1d98cf0d05973c2a153378ca30e60250ce7eca7..479030d889901d66a1193e93bb6d16eccd11980f 100644 (file)
@@ -1,8 +1,3 @@
-clang_tablegen(Checkers.inc -gen-clang-sa-checkers
-  -I ${CMAKE_CURRENT_SOURCE_DIR}/../../../include
-  SOURCE Checkers.td
-  TARGET ClangSACheckers)
-
 set(LLVM_LINK_COMPONENTS
   Support
   )
index 77a5a72264532c96b7c99789b95191a55a3f3729..fb9e366c3de00a139c69b92ede24b31a0ebcb53b 100644 (file)
@@ -27,6 +27,6 @@ void ento::registerBuiltinCheckers(CheckerRegistry &registry) {
 #define GET_CHECKERS
 #define CHECKER(FULLNAME,CLASS,DESCFILE,HELPTEXT,GROUPINDEX,HIDDEN)    \
   registry.addChecker(register##CLASS, FULLNAME, HELPTEXT);
-#include "Checkers.inc"
+#include "clang/StaticAnalyzer/Checkers/Checkers.inc"
 #undef GET_CHECKERS
 }
index 05b4a61c5af12fabf45eb0ba44888f8b7885c82b..d6e96f27a75e68a1c58e1e809be8abcacaefd861 100644 (file)
@@ -26,7 +26,7 @@ class CheckerRegistry;
 #define GET_CHECKERS
 #define CHECKER(FULLNAME,CLASS,CXXFILE,HELPTEXT,GROUPINDEX,HIDDEN)    \
   void register##CLASS(CheckerManager &mgr);
-#include "Checkers.inc"
+#include "clang/StaticAnalyzer/Checkers/Checkers.inc"
 #undef CHECKER
 #undef GET_CHECKERS