summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/Quality.h
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2018-06-06 12:38:37 +0000
committerSam McCall <sam.mccall@gmail.com>2018-06-06 12:38:37 +0000
commitbc7cbb78952137ad8a7f42538a7d2be0af1e8ac1 (patch)
tree04389e11159c9ca895578d334b54d799a8171fd2 /clang-tools-extra/clangd/Quality.h
parent9337b41cb5cd79fb57d97578b3c5e26a117ddfaf (diff)
downloadbcm5719-llvm-bc7cbb78952137ad8a7f42538a7d2be0af1e8ac1.tar.gz
bcm5719-llvm-bc7cbb78952137ad8a7f42538a7d2be0af1e8ac1.zip
[clangd] Boost fuzzy match score by 2x (so a maximum of 2) when the query is the full identifier name.
Summary: Fix a couple of bugs in tests an in Quality to keep tests passing. Reviewers: ioeric Subscribers: ilya-biryukov, MaskRay, jkorous, cfe-commits Differential Revision: https://reviews.llvm.org/D47815 llvm-svn: 334089
Diffstat (limited to 'clang-tools-extra/clangd/Quality.h')
-rw-r--r--clang-tools-extra/clangd/Quality.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/Quality.h b/clang-tools-extra/clangd/Quality.h
index fa05a7234b3..99731d9408a 100644
--- a/clang-tools-extra/clangd/Quality.h
+++ b/clang-tools-extra/clangd/Quality.h
@@ -70,7 +70,7 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &,
/// Attributes of a symbol-query pair that affect how much we like it.
struct SymbolRelevanceSignals {
- /// 0-1 fuzzy-match score for unqualified name. Must be explicitly assigned.
+ /// 0-1+ fuzzy-match score for unqualified name. Must be explicitly assigned.
float NameMatch = 1;
bool Forbidden = false; // Unavailable (e.g const) or inaccessible (private).
/// Proximity between best declaration and the query. [0-1], 1 is closest.
OpenPOWER on IntegriCloud