diff options
author | Eric Liu <ioeric@google.com> | 2018-05-18 18:33:08 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2018-05-18 18:33:08 +0000 |
commit | 1edf4bc68c57f4a69b9dfeea03b7f59bb6da90ea (patch) | |
tree | 8662b014d8156d5df575262fe58bbcff36bf3f31 | |
parent | 24b61ac832c79fc1cd2c04437dadca171cda63ed (diff) | |
download | bcm5719-llvm-1edf4bc68c57f4a69b9dfeea03b7f59bb6da90ea.tar.gz bcm5719-llvm-1edf4bc68c57f4a69b9dfeea03b7f59bb6da90ea.zip |
Revert "Move #include manipulation code to new lib/Tooling/Inclusions."
This reverts commit r332720. This break build bot with modules. Need to
investigate. Revert the change to unbreak bots.
llvm-svn: 332751
-rw-r--r-- | clang/include/clang/Format/Format.h | 2 | ||||
-rw-r--r-- | clang/include/clang/Tooling/Core/HeaderIncludes.h (renamed from clang/include/clang/Tooling/Inclusions/HeaderIncludes.h) | 8 | ||||
-rw-r--r-- | clang/include/clang/Tooling/Core/IncludeStyle.h (renamed from clang/include/clang/Tooling/Inclusions/IncludeStyle.h) | 6 | ||||
-rw-r--r-- | clang/lib/Format/CMakeLists.txt | 1 | ||||
-rw-r--r-- | clang/lib/Format/Format.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Tooling/CMakeLists.txt | 1 | ||||
-rw-r--r-- | clang/lib/Tooling/Core/CMakeLists.txt | 2 | ||||
-rw-r--r-- | clang/lib/Tooling/Core/HeaderIncludes.cpp (renamed from clang/lib/Tooling/Inclusions/HeaderIncludes.cpp) | 2 | ||||
-rw-r--r-- | clang/lib/Tooling/Core/IncludeStyle.cpp (renamed from clang/lib/Tooling/Inclusions/IncludeStyle.cpp) | 3 | ||||
-rw-r--r-- | clang/lib/Tooling/Inclusions/CMakeLists.txt | 12 | ||||
-rw-r--r-- | clang/unittests/Tooling/HeaderIncludesTest.cpp | 2 |
11 files changed, 15 insertions, 26 deletions
diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index 75654875414..b4d99f07545 100644 --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -16,8 +16,8 @@ #define LLVM_CLANG_FORMAT_FORMAT_H #include "clang/Basic/LangOptions.h" +#include "clang/Tooling/Core/IncludeStyle.h" #include "clang/Tooling/Core/Replacement.h" -#include "clang/Tooling/Inclusions/IncludeStyle.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/Support/Regex.h" #include <system_error> diff --git a/clang/include/clang/Tooling/Inclusions/HeaderIncludes.h b/clang/include/clang/Tooling/Core/HeaderIncludes.h index d99a3283168..1aaa3de441f 100644 --- a/clang/include/clang/Tooling/Inclusions/HeaderIncludes.h +++ b/clang/include/clang/Tooling/Core/HeaderIncludes.h @@ -7,12 +7,12 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_CLANG_TOOLING_INCLUSIONS_HEADERINCLUDES_H -#define LLVM_CLANG_TOOLING_INCLUSIONS_HEADERINCLUDES_H +#ifndef LLVM_CLANG_TOOLING_CORE_HEADERINCLUDES_H +#define LLVM_CLANG_TOOLING_CORE_HEADERINCLUDES_H #include "clang/Basic/SourceManager.h" #include "clang/Tooling/Core/Replacement.h" -#include "clang/Tooling/Inclusions/IncludeStyle.h" +#include "clang/Tooling/Core/IncludeStyle.h" #include "llvm/Support/Path.h" #include "llvm/Support/Regex.h" #include <unordered_map> @@ -134,4 +134,4 @@ private: } // namespace tooling } // namespace clang -#endif // LLVM_CLANG_TOOLING_INCLUSIONS_HEADERINCLUDES_H +#endif // LLVM_CLANG_TOOLING_CORE_HEADERINCLUDES_H diff --git a/clang/include/clang/Tooling/Inclusions/IncludeStyle.h b/clang/include/clang/Tooling/Core/IncludeStyle.h index 42d6e1a5cf1..ed7bd08ce0c 100644 --- a/clang/include/clang/Tooling/Inclusions/IncludeStyle.h +++ b/clang/include/clang/Tooling/Core/IncludeStyle.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_CLANG_TOOLING_INCLUSIONS_INCLUDESTYLE_H -#define LLVM_CLANG_TOOLING_INCLUSIONS_INCLUDESTYLE_H +#ifndef LLVM_CLANG_TOOLING_CORE_INCLUDESTYLE_H +#define LLVM_CLANG_TOOLING_CORE_INCLUDESTYLE_H #include "llvm/Support/YAMLTraits.h" #include <string> @@ -130,4 +130,4 @@ struct ScalarEnumerationTraits< } // namespace yaml } // namespace llvm -#endif // LLVM_CLANG_TOOLING_INCLUSIONS_INCLUDESTYLE_H +#endif // LLVM_CLANG_TOOLING_CORE_INCLUDESTYLE_H diff --git a/clang/lib/Format/CMakeLists.txt b/clang/lib/Format/CMakeLists.txt index 0019d045cd0..42e6d53d9fe 100644 --- a/clang/lib/Format/CMakeLists.txt +++ b/clang/lib/Format/CMakeLists.txt @@ -20,5 +20,4 @@ add_clang_library(clangFormat clangBasic clangLex clangToolingCore - clangToolingInclusions ) diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index d1a5dc8e6c6..c6de92b3caf 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -31,7 +31,7 @@ #include "clang/Basic/SourceManager.h" #include "clang/Basic/VirtualFileSystem.h" #include "clang/Lex/Lexer.h" -#include "clang/Tooling/Inclusions/HeaderIncludes.h" +#include "clang/Tooling/Core/HeaderIncludes.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/Allocator.h" diff --git a/clang/lib/Tooling/CMakeLists.txt b/clang/lib/Tooling/CMakeLists.txt index 031d8b51dec..eaae49b431f 100644 --- a/clang/lib/Tooling/CMakeLists.txt +++ b/clang/lib/Tooling/CMakeLists.txt @@ -4,7 +4,6 @@ set(LLVM_LINK_COMPONENTS ) add_subdirectory(Core) -add_subdirectory(Inclusions) add_subdirectory(Refactoring) add_subdirectory(ASTDiff) diff --git a/clang/lib/Tooling/Core/CMakeLists.txt b/clang/lib/Tooling/Core/CMakeLists.txt index f7f423c5222..84d17984b42 100644 --- a/clang/lib/Tooling/Core/CMakeLists.txt +++ b/clang/lib/Tooling/Core/CMakeLists.txt @@ -2,6 +2,8 @@ set(LLVM_LINK_COMPONENTS support) add_clang_library(clangToolingCore Diagnostic.cpp + HeaderIncludes.cpp + IncludeStyle.cpp Lookup.cpp Replacement.cpp diff --git a/clang/lib/Tooling/Inclusions/HeaderIncludes.cpp b/clang/lib/Tooling/Core/HeaderIncludes.cpp index 99c0866a685..d974d16f01c 100644 --- a/clang/lib/Tooling/Inclusions/HeaderIncludes.cpp +++ b/clang/lib/Tooling/Core/HeaderIncludes.cpp @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// -#include "clang/Tooling/Inclusions/HeaderIncludes.h" +#include "clang/Tooling/Core/HeaderIncludes.h" #include "clang/Basic/SourceManager.h" #include "clang/Lex/Lexer.h" diff --git a/clang/lib/Tooling/Inclusions/IncludeStyle.cpp b/clang/lib/Tooling/Core/IncludeStyle.cpp index 3597710f1f6..74eec481c28 100644 --- a/clang/lib/Tooling/Inclusions/IncludeStyle.cpp +++ b/clang/lib/Tooling/Core/IncludeStyle.cpp @@ -7,7 +7,8 @@ // //===----------------------------------------------------------------------===// -#include "clang/Tooling/Inclusions/IncludeStyle.h" +#include "clang/Tooling/Core/IncludeStyle.h" + using clang::tooling::IncludeStyle; diff --git a/clang/lib/Tooling/Inclusions/CMakeLists.txt b/clang/lib/Tooling/Inclusions/CMakeLists.txt deleted file mode 100644 index 00afb50f3a6..00000000000 --- a/clang/lib/Tooling/Inclusions/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -set(LLVM_LINK_COMPONENTS support) - -add_clang_library(clangToolingInclusions - HeaderIncludes.cpp - IncludeStyle.cpp - - LINK_LIBS - clangBasic - clangLex - clangRewrite - clangToolingCore - ) diff --git a/clang/unittests/Tooling/HeaderIncludesTest.cpp b/clang/unittests/Tooling/HeaderIncludesTest.cpp index ff68f75a6e8..4407221f8ad 100644 --- a/clang/unittests/Tooling/HeaderIncludesTest.cpp +++ b/clang/unittests/Tooling/HeaderIncludesTest.cpp @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// -#include "clang/Tooling/Inclusions/HeaderIncludes.h" +#include "clang/Tooling/Core/HeaderIncludes.h" #include "../Tooling/ReplacementTest.h" #include "../Tooling/RewriterTestContext.h" #include "clang/Format/Format.h" |