[PATCH] D56390: Generate Checkers.inc under clang/Driver and use from CC1Options.td
Yuka Takahashi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 7 07:24:01 PST 2019
yamaguchi created this revision.
yamaguchi added a reviewer: thakis.
Herald added a subscriber: mgorny.
Generate Checkers.inc also under include/clang/Driver so that we can
include this file from Driver/CC1Options.td without making Driver's
tablegen output depending on StaticAnalyzer/Checker's tablegen output.
https://reviews.llvm.org/D56390
Files:
clang/include/clang/Driver/CC1Options.td
clang/include/clang/Driver/CMakeLists.txt
Index: clang/include/clang/Driver/CMakeLists.txt
===================================================================
--- clang/include/clang/Driver/CMakeLists.txt
+++ clang/include/clang/Driver/CMakeLists.txt
@@ -1,3 +1,7 @@
set(LLVM_TARGET_DEFINITIONS Options.td)
tablegen(LLVM Options.inc -gen-opt-parser-defs)
+clang_tablegen(Checkers.inc -gen-clang-sa-checkers
+ -I ${CMAKE_CURRENT_SOURCE_DIR}/../StaticAnalyzer/Checkers
+ SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/../StaticAnalyzer/Checkers/Checkers.td
+ TARGET SACheckerForClangDriver)
add_public_tablegen_target(ClangDriverOptions)
Index: clang/include/clang/Driver/CC1Options.td
===================================================================
--- clang/include/clang/Driver/CC1Options.td
+++ clang/include/clang/Driver/CC1Options.td
@@ -109,11 +109,11 @@
const char *Values =
#define GET_CHECKERS
#define CHECKER(FULLNAME, CLASS, HT, DOC_URI) FULLNAME ","
- #include "clang/StaticAnalyzer/Checkers/Checkers.inc"
+ #include "clang/Driver/Checkers.inc"
#undef GET_CHECKERS
#define GET_PACKAGES
#define PACKAGE(FULLNAME) FULLNAME ","
- #include "clang/StaticAnalyzer/Checkers/Checkers.inc"
+ #include "clang/Driver/Checkers.inc"
#undef GET_PACKAGES
;
}]>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56390.180494.patch
Type: text/x-patch
Size: 1274 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190107/ceecc722/attachment-0001.bin>
More information about the cfe-commits
mailing list