This website requires JavaScript.
Explore
Help
Sign In
replica
/
hanchenye-llvm-project
Watch
2
Star
0
Fork
You've already forked hanchenye-llvm-project
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
c7b0bdffe7
hanchenye-llvm-project
/
clang
/
tools
/
clang-check
/
CMakeLists.txt
6 lines
99 B
CMake
Raw
Normal View
History
Unescape
Escape
Fix a big layering violation introduced by r158771. That commit added a new library just to hold the RawCommentList. I've started a discussion on the commit thread about whether that is really meritted -- it certainly doesn't seem necessary at this stage. However, the immediate problem is that the AST library has a hard dependency on the Comment library, but the dependencies were set up completely backward. In addition to the layering violation, this had an unfortunate effect if scattering the Comments library dependency throughout the build system, but inconsistently so -- several parts of the CMake dependencies were missing and only showed up due to transitive deps or the fact that the target wasn't being built by tho bots. It turns out that the Comments library can't (currently) be a well formed layer *below* the AST library either, as it has an API that accepts an ASTContext. That parameter is currently unused, so maybe that was a mistake? Anyways, it really seems like this is logically part of the AST -- that's the whole point of the ASTContext providing access to it as far as I can tell -- so I've merged it into the AST library to solve the immediate layering violation problems and remove some of the churn from our library dependencies. llvm-svn: 158807
2012-06-20 17:53:52 +08:00
set
(
LLVM_USED_LIBS
clangTooling
clangBasic
)
Adds a tooling library. Provides an API to run clang tools (FrontendActions) as standalone tools, or repeatedly in-memory in a process. This is useful for unit-testing, map-reduce style applications, source transformation daemons or command line tools. The ability to run over multiple translation units with different command line arguments enables building up refactoring tools that need to apply transformations across translation unit boundaries. See tools/clang-check/ClangCheck.cpp for an example. llvm-svn: 154008
2012-04-04 20:07:46 +08:00
add_clang_executable
(
clang-check
C
l
a
n
g
C
h
e
c
k
.
c
p
p
)