Skip to content

Commit aabcb22

Browse files
committed
Rename SwiftScan directory into DependencyScan
1 parent 79d559e commit aabcb22

File tree

10 files changed

+17
-18
lines changed

10 files changed

+17
-18
lines changed

include/swift/SwiftScan/DependencyScanningTool.h renamed to include/swift/DependencyScan/DependencyScanningTool.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#include "swift/AST/ModuleDependencies.h"
1717
#include "swift/Frontend/PrintingDiagnosticConsumer.h"
18-
#include "swift/SwiftScan/ScanDependencies.h"
18+
#include "swift/DependencyScan/ScanDependencies.h"
1919
#include "llvm/ADT/StringMap.h"
2020
#include "llvm/ADT/StringRef.h"
2121
#include "llvm/ADT/StringSet.h"
@@ -45,8 +45,7 @@ class DependencyScanningTool {
4545
/// module names (batch inputs) and output them to the
4646
/// BatchScanInput-specified output locations.
4747
///
48-
/// \returns a \c StringError with the diagnostic output if errors
49-
/// occurred.
48+
/// \returns a \c std::error_code if errors occured during scan.
5049
std::error_code getDependencies(ArrayRef<const char *> Command,
5150
const std::vector<BatchScanInput> &BatchInput,
5251
const llvm::StringSet<> &PlaceholderModules);
@@ -58,10 +57,10 @@ class DependencyScanningTool {
5857
initCompilerInstanceForScan(ArrayRef<const char *> Command);
5958

6059
/// Shared cache of module dependencies, re-used by individual queries
61-
/// during the lifetime of this Tool
60+
/// during the lifetime of this Tool.
6261
std::unique_ptr<ModuleDependenciesCache> SharedCache;
6362

64-
/// A shared consumer that, for now, just prints the encountered diagnostics
63+
/// A shared consumer that, for now, just prints the encountered diagnostics.
6564
PrintingDiagnosticConsumer PDC;
6665
llvm::BumpPtrAllocator Alloc;
6766
llvm::StringSaver Saver;

lib/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ add_subdirectory(ASTSectionImporter)
1919
add_subdirectory(Basic)
2020
add_subdirectory(ClangImporter)
2121
add_subdirectory(Demangling)
22+
add_subdirectory(DependencyScan)
2223
add_subdirectory(Driver)
2324
add_subdirectory(Frontend)
2425
add_subdirectory(FrontendTool)
@@ -36,7 +37,6 @@ add_subdirectory(PrintAsObjC)
3637
add_subdirectory(RemoteAST)
3738
add_subdirectory(Sema)
3839
add_subdirectory(Serialization)
39-
add_subdirectory(SwiftScan)
4040
add_subdirectory(SwiftDemangle)
4141
add_subdirectory(SwiftReflection)
4242
add_subdirectory(SwiftRemoteMirror)

lib/SwiftScan/CMakeLists.txt renamed to lib/DependencyScan/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
set_swift_llvm_is_available()
2-
add_swift_host_library(SwiftScanTool STATIC
2+
add_swift_host_library(SwiftScan STATIC
33
DependencyScanningTool.cpp
44
ScanDependencies.cpp)
5-
add_dependencies(SwiftScanTool
5+
add_dependencies(SwiftScan
66
swift-syntax-generated-headers
77
SwiftOptions)
88

9-
target_link_libraries(SwiftScanTool INTERFACE
9+
target_link_libraries(SwiftScan INTERFACE
1010
clangAPINotes
1111
clangBasic)
1212

13-
target_link_libraries(SwiftScanTool PRIVATE
13+
target_link_libraries(SwiftScan PRIVATE
1414
swiftClangImporter
1515
swiftDemangling
1616
swiftFrontend

lib/SwiftScan/DependencyScanningTool.cpp renamed to lib/DependencyScan/DependencyScanningTool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include "swift/SwiftScan/DependencyScanningTool.h"
13+
#include "swift/DependencyScan/DependencyScanningTool.h"
1414
#include "swift/AST/DiagnosticEngine.h"
1515
#include "swift/AST/DiagnosticsFrontend.h"
1616
#include "swift/Basic/LLVMInitialize.h"

lib/SwiftScan/ScanDependencies.cpp renamed to lib/DependencyScan/ScanDependencies.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
#include "swift/Basic/Defer.h"
2323
#include "swift/Basic/LLVM.h"
2424
#include "swift/Basic/STLExtras.h"
25+
#include "swift/DependencyScan/ScanDependencies.h"
2526
#include "swift/Frontend/Frontend.h"
2627
#include "swift/Frontend/FrontendOptions.h"
2728
#include "swift/Frontend/ModuleInterfaceLoader.h"
2829
#include "swift/Strings.h"
29-
#include "swift/SwiftScan/ScanDependencies.h"
3030
#include "clang/Basic/Module.h"
3131
#include "llvm/ADT/SetVector.h"
3232
#include "llvm/ADT/StringMap.h"

lib/FrontendTool/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ add_swift_host_library(swiftFrontendTool STATIC
77
TBD.cpp)
88
add_dependencies(swiftFrontendTool
99
swift-syntax-generated-headers
10-
SwiftScanTool
10+
SwiftScan
1111
SwiftOptions)
1212
target_link_libraries(swiftFrontendTool INTERFACE
1313
clangAPINotes
14-
SwiftScanTool
14+
SwiftScan
1515
clangBasic)
1616
target_link_libraries(swiftFrontendTool PRIVATE
1717
swiftClangImporter
1818
swiftDemangling
19-
SwiftScanTool
19+
SwiftScan
2020
swiftFrontend
2121
swiftIDE
2222
swiftImmediate

lib/FrontendTool/FrontendTool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
//===----------------------------------------------------------------------===//
2222

2323
#include "swift/FrontendTool/FrontendTool.h"
24-
#include "swift/SwiftScan/ScanDependencies.h"
24+
#include "swift/DependencyScan/ScanDependencies.h"
2525
#include "Dependencies.h"
2626
#include "TBD.h"
2727
#include "swift/Subsystems.h"

unittests/SwiftScan/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ add_swift_unittest(swiftScanTests
44

55
target_link_libraries(swiftScanTests
66
PRIVATE
7-
SwiftScanTool)
7+
SwiftScan)
88

99
target_compile_definitions(swiftScanTests PRIVATE
1010
SWIFTLIB_DIR=\"${SWIFTLIB_DIR}\")

unittests/SwiftScan/ScanFixture.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include "swift/SwiftScan/DependencyScanningTool.h"
13+
#include "swift/DependencyScan/DependencyScanningTool.h"
1414
#include "gtest/gtest.h"
1515
#include <string>
1616

0 commit comments

Comments
 (0)