File tree Expand file tree Collapse file tree 6 files changed +17
-14
lines changed
unittests/SourceKit/Support Expand file tree Collapse file tree 6 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift.org open source project
4
4
//
5
- // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See https://swift.org/LICENSE.txt for license information
9
9
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
13
- #ifndef LLVM_SOURCEKIT_LIB_SUPPORT_FUZZYSTRINGMATCHER_H
14
- #define LLVM_SOURCEKIT_LIB_SUPPORT_FUZZYSTRINGMATCHER_H
13
+ #ifndef SWIFT_IDE_FUZZYSTRINGMATCHER_H
14
+ #define SWIFT_IDE_FUZZYSTRINGMATCHER_H
15
15
16
- #include " SourceKit/Core /LLVM.h"
16
+ #include " swift/Basic /LLVM.h"
17
17
#include " llvm/ADT/BitVector.h"
18
18
#include < string>
19
19
20
- namespace SourceKit {
20
+ namespace swift {
21
+ namespace ide {
21
22
22
23
// / FuzzyStringMatcher compares candidate strings against a pattern
23
24
// / string using a fuzzy matching algorithm and provides a numerical
@@ -49,6 +50,7 @@ class FuzzyStringMatcher {
49
50
double scoreCandidate (StringRef candidate) const ;
50
51
};
51
52
52
- } // end namespace SourceKit
53
+ } // namespace ide
54
+ } // namespace swift
53
55
54
- #endif // LLVM_SOURCEKIT_LIB_SUPPORT_FUZZYSTRINGMATCHER_H
56
+ #endif // SWIFT_IDE_FUZZYSTRINGMATCHER_H
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ add_swift_host_library(swiftIDE STATIC
7
7
ConformingMethodList.cpp
8
8
ExprContextAnalysis.cpp
9
9
Formatting.cpp
10
+ FuzzyStringMatcher.cpp
10
11
Refactoring.cpp
11
12
ModuleInterfacePrinting.cpp
12
13
REPLCodeCompletion.cpp
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift.org open source project
4
4
//
5
- // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See https://swift.org/LICENSE.txt for license information
9
9
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
13
- #include " SourceKit/Support /FuzzyStringMatcher.h"
13
+ #include " swift/IDE /FuzzyStringMatcher.h"
14
14
#include " clang/Basic/CharInfo.h"
15
15
#include " llvm/ADT/ArrayRef.h"
16
16
#include " llvm/ADT/SmallString.h"
17
17
18
- using namespace SourceKit ;
18
+ using namespace swift ;
19
+ using namespace swift ::ide;
19
20
using clang::toUppercase;
20
21
using clang::toLowercase;
21
22
using clang::isUppercase;
Original file line number Diff line number Diff line change 1
1
add_sourcekit_library (SourceKitSupport
2
2
Concurrency-libdispatch.cpp
3
- FuzzyStringMatcher.cpp
4
3
Logging.cpp
5
4
ImmutableTextBuffer.cpp
6
5
ThreadSafeRefCntPtr.cpp
Original file line number Diff line number Diff line change 11
11
// ===----------------------------------------------------------------------===//
12
12
13
13
#include " CodeCompletionOrganizer.h"
14
- #include " SourceKit/Support/FuzzyStringMatcher.h"
15
14
#include " swift/AST/ASTContext.h"
16
15
#include " swift/AST/Module.h"
17
16
#include " swift/IDE/CodeCompletionResultPrinter.h"
17
+ #include " swift/IDE/FuzzyStringMatcher.h"
18
18
#include " swift/Frontend/Frontend.h"
19
19
#include " swift/Markup/XMLUtils.h"
20
20
#include " clang/Basic/CharInfo.h"
Original file line number Diff line number Diff line change 10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
13
- #include " SourceKit/Support /FuzzyStringMatcher.h"
13
+ #include " swift/IDE /FuzzyStringMatcher.h"
14
14
#include " gtest/gtest.h"
15
15
16
- using FuzzyStringMatcher = SourceKit ::FuzzyStringMatcher;
16
+ using FuzzyStringMatcher = swift::ide ::FuzzyStringMatcher;
17
17
18
18
TEST (FuzzyStringMatcher, BasicMatching) {
19
19
{
You can’t perform that action at this time.
0 commit comments