summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/FuzzyMatch.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/FuzzyMatch.h')
-rw-r--r--clang-tools-extra/clangd/FuzzyMatch.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/FuzzyMatch.h b/clang-tools-extra/clangd/FuzzyMatch.h
index 13a25e28311..d3509ad89a5 100644
--- a/clang-tools-extra/clangd/FuzzyMatch.h
+++ b/clang-tools-extra/clangd/FuzzyMatch.h
@@ -31,7 +31,9 @@ public:
// Characters beyond MaxPat are ignored.
FuzzyMatcher(llvm::StringRef Pattern);
- // If Word matches the pattern, return a score in [0,1] (higher is better).
+ // If Word matches the pattern, return a score indicating the quality match.
+ // Scores usually fall in a [0,1] range, with 1 being a very good score.
+ // "Super" scores in (1,2] are possible if the pattern is the full word.
// Characters beyond MaxWord are ignored.
llvm::Optional<float> match(llvm::StringRef Word);
OpenPOWER on IntegriCloud