diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-07-18 08:55:03 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-07-18 08:55:03 +0000 |
commit | ae9459cceb59b4f1f440dfaf07122c437ccd2d2a (patch) | |
tree | 361a9b4c9a6d2fe10b6fbe1023e1ca7cf8dfc8e6 /tools/libclang/ARCMigrate.cpp | |
parent | 906b61f528d9cba41ed36193916675e38d1c3310 (diff) | |
download | clang-ae9459cceb59b4f1f440dfaf07122c437ccd2d2a.tar.gz |
[CMake] Move CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER) into clang/Config/config.h.
LLVM_ENABLE_MODULES is sensitive of -D. Move them into config.h.
FIXME: It'd be better that they are #cmakedefine01 rather than #cmakedefine.
(#if FOO rather than #if defined(FOO))
Then we can find missing #include "clang/Config/config.h" in the future.
Differential Revision: https://reviews.llvm.org/D35527
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/ARCMigrate.cpp')
-rw-r--r-- | tools/libclang/ARCMigrate.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libclang/ARCMigrate.cpp b/tools/libclang/ARCMigrate.cpp index 44a60c4e3e..0f2bd06db4 100644 --- a/tools/libclang/ARCMigrate.cpp +++ b/tools/libclang/ARCMigrate.cpp @@ -14,6 +14,7 @@ #include "clang-c/Index.h" #include "CXString.h" #include "clang/ARCMigrate/ARCMT.h" +#include "clang/Config/config.h" #include "clang/Frontend/TextDiagnosticBuffer.h" #include "llvm/Support/FileSystem.h" |