From bc7cbb78952137ad8a7f42538a7d2be0af1e8ac1 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Wed, 6 Jun 2018 12:38:37 +0000 Subject: [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 --- clang-tools-extra/clangd/Quality.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang-tools-extra/clangd/Quality.h') 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. -- cgit v1.2.3