[clang-tools-extra] r198403 - clang-tidy: Fix build since r198402 in the case that the source tree of clang-tools-extra is not located on clang/tools/extra.

NAKAMURA Takumi geek4civic at gmail.com
Fri Jan 3 01:49:13 PST 2014


Author: chapuni
Date: Fri Jan  3 03:49:13 2014
New Revision: 198403

URL: http://llvm.org/viewvc/llvm-project?rev=198403&view=rev
Log:
clang-tidy: Fix build since r198402 in the case that the source tree of clang-tools-extra is not located on clang/tools/extra.

FIXME: Get rid of private headers in other modules.

Modified:
    clang-tools-extra/trunk/clang-tidy/CMakeLists.txt
    clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp

Modified: clang-tools-extra/trunk/clang-tidy/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/CMakeLists.txt?rev=198403&r1=198402&r2=198403&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-tidy/CMakeLists.txt Fri Jan  3 03:49:13 2014
@@ -2,6 +2,10 @@ set(LLVM_LINK_COMPONENTS
   Support
   )
 
+# FIXME: Get rid of private headers in other modules.
+# It is for convenience of clang/lib/StaticAnalyzer.
+include_directories(${CLANG_BINARY_DIR} ${CLANG_SOURCE_DIR})
+
 add_clang_library(clangTidy
   ClangTidy.cpp
   ClangTidyModule.cpp

Modified: clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp?rev=198403&r1=198402&r2=198403&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp Fri Jan  3 03:49:13 2014
@@ -38,7 +38,7 @@
 #include <algorithm>
 #include <vector>
 // FIXME: Move AnalysisConsumer to include/clang/StaticAnalyzer/Frontend.
-#include "../../../lib/StaticAnalyzer/Frontend/AnalysisConsumer.h"
+#include "lib/StaticAnalyzer/Frontend/AnalysisConsumer.h"
 
 using namespace clang::ast_matchers;
 using namespace clang::driver;
@@ -55,7 +55,7 @@ static StringRef StaticAnalyzerCheckers[
 #define GET_CHECKERS
 #define CHECKER(FULLNAME, CLASS, DESCFILE, HELPTEXT, GROUPINDEX, HIDDEN)       \
   FULLNAME,
-#include "../../../lib/StaticAnalyzer/Checkers/Checkers.inc"
+#include "lib/StaticAnalyzer/Checkers/Checkers.inc"
 #undef CHECKER
 #undef GET_CHECKERS
 };





More information about the cfe-commits mailing list