hanchenye-llvm-project/clang/unittests/Tooling
Chandler Carruth 39a3e7544a 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 09:53:52 +00:00
..
CompilationDatabaseTest.cpp Fixes crasher bug in JSONCompilationDatabase for invalid input. 2012-05-15 11:46:07 +00:00
Makefile Fix a big layering violation introduced by r158771. 2012-06-20 09:53:52 +00:00
RecursiveASTVisitorTest.cpp Rename shouldVisitImplicitDeclarations to shouldVisitImplicitCode. 2012-06-13 07:12:33 +00:00
RefactoringTest.cpp Adds the Refactoring library, which is a layer on top of the Tooling library 2012-05-23 16:29:20 +00:00
RewriterTest.cpp Adds a method overwriteChangedFiles to the Rewriter. This is implemented by 2012-05-22 17:01:35 +00:00
RewriterTestContext.h Move sideeffecting call out of assert(). 2012-06-07 09:57:21 +00:00
ToolingTest.cpp ToolingTest.cpp: Fix r158592, runToolOnCode.FindsNoTopLevelDeclOnEmptyCode on msvc. LangOpts.MicrosoftExt still appends "class type_info;". 2012-06-16 06:04:05 +00:00