diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h index 172ac88edf45..cc2d98736f79 100644 --- a/clang/include/clang/AST/ASTContext.h +++ b/clang/include/clang/AST/ASTContext.h @@ -27,7 +27,7 @@ #include "clang/AST/TemplateName.h" #include "clang/AST/Type.h" #include "clang/AST/CanonicalType.h" -#include "clang/Comments/RawCommentList.h" +#include "clang/AST/RawCommentList.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/IntrusiveRefCntPtr.h" diff --git a/clang/include/clang/Comments/RawCommentList.h b/clang/include/clang/AST/RawCommentList.h similarity index 100% rename from clang/include/clang/Comments/RawCommentList.h rename to clang/include/clang/AST/RawCommentList.h diff --git a/clang/lib/AST/CMakeLists.txt b/clang/lib/AST/CMakeLists.txt index 716459a930cf..67809446650e 100644 --- a/clang/lib/AST/CMakeLists.txt +++ b/clang/lib/AST/CMakeLists.txt @@ -35,6 +35,7 @@ add_clang_library(clangAST NestedNameSpecifier.cpp NSAPI.cpp ParentMap.cpp + RawCommentList.cpp RecordLayout.cpp RecordLayoutBuilder.cpp SelectorLocationsKind.cpp diff --git a/clang/lib/Comments/RawCommentList.cpp b/clang/lib/AST/RawCommentList.cpp similarity index 99% rename from clang/lib/Comments/RawCommentList.cpp rename to clang/lib/AST/RawCommentList.cpp index 7db9175c174a..07776779e870 100644 --- a/clang/lib/Comments/RawCommentList.cpp +++ b/clang/lib/AST/RawCommentList.cpp @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// -#include "clang/Comments/RawCommentList.h" +#include "clang/AST/RawCommentList.h" #include "clang/AST/ASTContext.h" #include "llvm/ADT/STLExtras.h" diff --git a/clang/lib/CMakeLists.txt b/clang/lib/CMakeLists.txt index 228b43b23592..dfb9d61ff539 100644 --- a/clang/lib/CMakeLists.txt +++ b/clang/lib/CMakeLists.txt @@ -15,4 +15,3 @@ add_subdirectory(Frontend) add_subdirectory(FrontendTool) add_subdirectory(Tooling) add_subdirectory(StaticAnalyzer) -add_subdirectory(Comments) diff --git a/clang/lib/Comments/CMakeLists.txt b/clang/lib/Comments/CMakeLists.txt deleted file mode 100644 index db4ca73d2b23..000000000000 --- a/clang/lib/Comments/CMakeLists.txt +++ /dev/null @@ -1,6 +0,0 @@ -set(LLVM_USED_LIBS clangBasic clangAST clangLex) - -add_clang_library(clangComments - RawCommentList.cpp - ) - diff --git a/clang/lib/Comments/Makefile b/clang/lib/Comments/Makefile deleted file mode 100644 index 0783f1f26c23..000000000000 --- a/clang/lib/Comments/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -##===- clang/lib/Comments/Makefile -------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -CLANG_LEVEL := ../.. -LIBRARYNAME := clangComments - -include $(CLANG_LEVEL)/Makefile - diff --git a/clang/lib/Makefile b/clang/lib/Makefile index 0e81af19cee0..2eb72a91e68b 100755 --- a/clang/lib/Makefile +++ b/clang/lib/Makefile @@ -10,7 +10,7 @@ CLANG_LEVEL := .. PARALLEL_DIRS = Headers Basic Lex Parse AST Sema CodeGen Analysis \ StaticAnalyzer Edit Rewrite ARCMigrate Serialization Frontend \ - FrontendTool Tooling Driver Comments + FrontendTool Tooling Driver include $(CLANG_LEVEL)/Makefile diff --git a/clang/lib/Sema/CMakeLists.txt b/clang/lib/Sema/CMakeLists.txt index 3a898dde23fe..07734c7c7b57 100644 --- a/clang/lib/Sema/CMakeLists.txt +++ b/clang/lib/Sema/CMakeLists.txt @@ -4,7 +4,6 @@ set(LLVM_USED_LIBS clangBasic clangEdit clangLex - clangComments ) add_clang_library(clangSema diff --git a/clang/tools/arcmt-test/Makefile b/clang/tools/arcmt-test/Makefile index 81f27c2b11df..84c4dc2b6654 100644 --- a/clang/tools/arcmt-test/Makefile +++ b/clang/tools/arcmt-test/Makefile @@ -19,7 +19,7 @@ NO_INSTALL = 1 LINK_COMPONENTS := support mc USEDLIBS = clangARCMigrate.a clangRewrite.a \ clangFrontend.a clangDriver.a clangSerialization.a clangParse.a \ - clangSema.a clangEdit.a clangAnalysis.a clangAST.a clangLex.a clangComments.a \ + clangSema.a clangEdit.a clangAnalysis.a clangAST.a clangLex.a \ clangBasic.a include $(CLANG_LEVEL)/Makefile diff --git a/clang/tools/c-index-test/Makefile b/clang/tools/c-index-test/Makefile index b061492cafe9..35f2c040c6d2 100644 --- a/clang/tools/c-index-test/Makefile +++ b/clang/tools/c-index-test/Makefile @@ -20,7 +20,7 @@ TOOL_NO_EXPORTS = 1 LINK_COMPONENTS := support mc USEDLIBS = clang.a clangFrontend.a clangDriver.a \ clangSerialization.a clangParse.a clangSema.a \ - clangAnalysis.a clangEdit.a clangAST.a clangLex.a clangComments.a \ + clangAnalysis.a clangEdit.a clangAST.a clangLex.a \ clangBasic.a include $(CLANG_LEVEL)/Makefile diff --git a/clang/tools/clang-check/CMakeLists.txt b/clang/tools/clang-check/CMakeLists.txt index 83fe10f80ee4..851d6cdd1615 100644 --- a/clang/tools/clang-check/CMakeLists.txt +++ b/clang/tools/clang-check/CMakeLists.txt @@ -1,4 +1,4 @@ -set(LLVM_USED_LIBS clangTooling clangBasic clangComments) +set(LLVM_USED_LIBS clangTooling clangBasic) add_clang_executable(clang-check ClangCheck.cpp diff --git a/clang/tools/clang-check/Makefile b/clang/tools/clang-check/Makefile index 5c54a6b33214..49b1ada95b93 100644 --- a/clang/tools/clang-check/Makefile +++ b/clang/tools/clang-check/Makefile @@ -18,7 +18,7 @@ TOOL_NO_EXPORTS = 1 LINK_COMPONENTS := support mc USEDLIBS = clangFrontend.a clangSerialization.a clangDriver.a \ clangTooling.a clangParse.a clangSema.a clangAnalysis.a \ - clangEdit.a clangAST.a clangLex.a clangComments.a clangBasic.a + clangEdit.a clangAST.a clangLex.a clangBasic.a include $(CLANG_LEVEL)/Makefile diff --git a/clang/tools/diagtool/Makefile b/clang/tools/diagtool/Makefile index 5f5fb2ae365a..8af4cef6433c 100644 --- a/clang/tools/diagtool/Makefile +++ b/clang/tools/diagtool/Makefile @@ -20,7 +20,7 @@ LINK_COMPONENTS := support mc USEDLIBS = clangFrontend.a clangDriver.a clangSerialization.a clangParse.a \ clangSema.a clangAnalysis.a clangEdit.a clangAST.a clangLex.a \ - clangComments.a clangBasic.a + clangBasic.a include $(CLANG_LEVEL)/Makefile diff --git a/clang/tools/driver/Makefile b/clang/tools/driver/Makefile index 4105cb6d94f1..270d4fdda863 100644 --- a/clang/tools/driver/Makefile +++ b/clang/tools/driver/Makefile @@ -36,7 +36,7 @@ USEDLIBS = clangFrontendTool.a clangFrontend.a clangDriver.a \ clangStaticAnalyzerFrontend.a clangStaticAnalyzerCheckers.a \ clangStaticAnalyzerCore.a \ clangAnalysis.a clangARCMigrate.a clangRewrite.a \ - clangEdit.a clangAST.a clangLex.a clangComments.a clangBasic.a + clangEdit.a clangAST.a clangLex.a clangBasic.a include $(CLANG_LEVEL)/Makefile diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt index 7a6732a77a53..293dfa3ff94d 100644 --- a/clang/tools/libclang/CMakeLists.txt +++ b/clang/tools/libclang/CMakeLists.txt @@ -6,7 +6,6 @@ set(LLVM_USED_LIBS clangSerialization clangSema clangEdit - clangComments clangAST clangLex clangBasic) diff --git a/clang/tools/libclang/Makefile b/clang/tools/libclang/Makefile index 78da0675dc36..8d0a614403ad 100644 --- a/clang/tools/libclang/Makefile +++ b/clang/tools/libclang/Makefile @@ -19,7 +19,7 @@ LINK_COMPONENTS := support mc USEDLIBS = clangARCMigrate.a clangRewrite.a clangFrontend.a clangDriver.a \ clangSerialization.a \ clangParse.a clangSema.a clangEdit.a clangAnalysis.a \ - clangAST.a clangLex.a clangComments.a clangBasic.a + clangAST.a clangLex.a clangBasic.a include $(CLANG_LEVEL)/Makefile diff --git a/clang/unittests/Frontend/Makefile b/clang/unittests/Frontend/Makefile index 357e24234fc3..f3e639665849 100644 --- a/clang/unittests/Frontend/Makefile +++ b/clang/unittests/Frontend/Makefile @@ -14,6 +14,6 @@ USEDLIBS = clangFrontendTool.a clangFrontend.a clangDriver.a \ clangSerialization.a clangCodeGen.a clangParse.a clangSema.a \ clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a \ clangARCMigrate.a clangRewrite.a clangEdit.a \ - clangAnalysis.a clangAST.a clangLex.a clangComments.a clangBasic.a + clangAnalysis.a clangAST.a clangLex.a clangBasic.a include $(CLANG_LEVEL)/unittests/Makefile diff --git a/clang/unittests/Tooling/Makefile b/clang/unittests/Tooling/Makefile index 84e05bb0e469..5d6747dce803 100644 --- a/clang/unittests/Tooling/Makefile +++ b/clang/unittests/Tooling/Makefile @@ -12,6 +12,6 @@ TESTNAME = Tooling LINK_COMPONENTS := support mc USEDLIBS = clangTooling.a clangFrontend.a clangSerialization.a clangDriver.a \ clangParse.a clangRewrite.a clangSema.a clangAnalysis.a clangEdit.a \ - clangAST.a clangLex.a clangComments.a clangBasic.a + clangAST.a clangLex.a clangBasic.a include $(CLANG_LEVEL)/unittests/Makefile