소스 검색

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332751 91177308-0d34-0410-b5e6-96231b3b80d8
Eric Liu 7 년 전
부모
커밋
d7bc93eac6

+ 1 - 1
include/clang/Format/Format.h

@@ -16,8 +16,8 @@
 #define LLVM_CLANG_FORMAT_FORMAT_H
 #define LLVM_CLANG_FORMAT_FORMAT_H
 
 
 #include "clang/Basic/LangOptions.h"
 #include "clang/Basic/LangOptions.h"
+#include "clang/Tooling/Core/IncludeStyle.h"
 #include "clang/Tooling/Core/Replacement.h"
 #include "clang/Tooling/Core/Replacement.h"
-#include "clang/Tooling/Inclusions/IncludeStyle.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/Support/Regex.h"
 #include "llvm/Support/Regex.h"
 #include <system_error>
 #include <system_error>

+ 4 - 4
include/clang/Tooling/Inclusions/HeaderIncludes.h → 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/Basic/SourceManager.h"
 #include "clang/Tooling/Core/Replacement.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/Path.h"
 #include "llvm/Support/Regex.h"
 #include "llvm/Support/Regex.h"
 #include <unordered_map>
 #include <unordered_map>
@@ -134,4 +134,4 @@ private:
 } // namespace tooling
 } // namespace tooling
 } // namespace clang
 } // namespace clang
 
 
-#endif // LLVM_CLANG_TOOLING_INCLUSIONS_HEADERINCLUDES_H
+#endif // LLVM_CLANG_TOOLING_CORE_HEADERINCLUDES_H

+ 3 - 3
include/clang/Tooling/Inclusions/IncludeStyle.h → 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 "llvm/Support/YAMLTraits.h"
 #include <string>
 #include <string>
@@ -130,4 +130,4 @@ struct ScalarEnumerationTraits<
 } // namespace yaml
 } // namespace yaml
 } // namespace llvm
 } // namespace llvm
 
 
-#endif // LLVM_CLANG_TOOLING_INCLUSIONS_INCLUDESTYLE_H
+#endif // LLVM_CLANG_TOOLING_CORE_INCLUDESTYLE_H

+ 0 - 1
lib/Format/CMakeLists.txt

@@ -20,5 +20,4 @@ add_clang_library(clangFormat
   clangBasic
   clangBasic
   clangLex
   clangLex
   clangToolingCore
   clangToolingCore
-  clangToolingInclusions
   )
   )

+ 1 - 1
lib/Format/Format.cpp

@@ -31,7 +31,7 @@
 #include "clang/Basic/SourceManager.h"
 #include "clang/Basic/SourceManager.h"
 #include "clang/Basic/VirtualFileSystem.h"
 #include "clang/Basic/VirtualFileSystem.h"
 #include "clang/Lex/Lexer.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/STLExtras.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/Allocator.h"

+ 0 - 1
lib/Tooling/CMakeLists.txt

@@ -4,7 +4,6 @@ set(LLVM_LINK_COMPONENTS
   )
   )
 
 
 add_subdirectory(Core)
 add_subdirectory(Core)
-add_subdirectory(Inclusions)
 add_subdirectory(Refactoring)
 add_subdirectory(Refactoring)
 add_subdirectory(ASTDiff)
 add_subdirectory(ASTDiff)
 
 

+ 2 - 0
lib/Tooling/Core/CMakeLists.txt

@@ -2,6 +2,8 @@ set(LLVM_LINK_COMPONENTS support)
 
 
 add_clang_library(clangToolingCore
 add_clang_library(clangToolingCore
   Diagnostic.cpp
   Diagnostic.cpp
+  HeaderIncludes.cpp
+  IncludeStyle.cpp
   Lookup.cpp
   Lookup.cpp
   Replacement.cpp
   Replacement.cpp
 
 

+ 1 - 1
lib/Tooling/Inclusions/HeaderIncludes.cpp → 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/Basic/SourceManager.h"
 #include "clang/Lex/Lexer.h"
 #include "clang/Lex/Lexer.h"
 
 

+ 2 - 1
lib/Tooling/Inclusions/IncludeStyle.cpp → 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;
 using clang::tooling::IncludeStyle;
 
 

+ 0 - 12
lib/Tooling/Inclusions/CMakeLists.txt

@@ -1,12 +0,0 @@
-set(LLVM_LINK_COMPONENTS support)
-
-add_clang_library(clangToolingInclusions
-  HeaderIncludes.cpp
-  IncludeStyle.cpp
-
-  LINK_LIBS
-  clangBasic
-  clangLex
-  clangRewrite
-  clangToolingCore
-  )

+ 1 - 1
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/ReplacementTest.h"
 #include "../Tooling/RewriterTestContext.h"
 #include "../Tooling/RewriterTestContext.h"
 #include "clang/Format/Format.h"
 #include "clang/Format/Format.h"