[clang-tools-extra] r198404 - clang-tody: Rework r198403, to fix build.
NAKAMURA Takumi
geek4civic at gmail.com
Fri Jan 3 02:24:52 PST 2014
Author: chapuni
Date: Fri Jan 3 04:24:51 2014
New Revision: 198404
URL: http://llvm.org/viewvc/llvm-project?rev=198404&view=rev
Log:
clang-tody: Rework r198403, to fix build.
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=198404&r1=198403&r2=198404&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clang-tidy/CMakeLists.txt Fri Jan 3 04:24:51 2014
@@ -3,8 +3,8 @@ set(LLVM_LINK_COMPONENTS
)
# 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})
+# It is hack to find "../../../lib/StaticAnalyzer".
+include_directories(${CLANG_SOURCE_DIR}/lib/StaticAnalyzer/Core)
add_clang_library(clangTidy
ClangTidy.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=198404&r1=198403&r2=198404&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/ClangTidy.cpp Fri Jan 3 04:24:51 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