projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f27dcf0
)
[clangd] Tune macro quality scoring for code completion.
author
Eric Liu
<ioeric@google.com>
Wed, 5 Sep 2018 07:40:38 +0000
(07:40 +0000)
committer
Eric Liu
<ioeric@google.com>
Wed, 5 Sep 2018 07:40:38 +0000
(07:40 +0000)
x0.2 seems to be too much penalty, macros might be wanted in some cases;
changing to 0.5x instead. The tuning didn't affect ranking for non-macro
completions.
llvm-svn: 341449
clang-tools-extra/clangd/Quality.cpp
patch
|
blob
|
history
diff --git
a/clang-tools-extra/clangd/Quality.cpp
b/clang-tools-extra/clangd/Quality.cpp
index
5a9fcd2
..
7e0e837
100644
(file)
--- a/
clang-tools-extra/clangd/Quality.cpp
+++ b/
clang-tools-extra/clangd/Quality.cpp
@@
-221,7
+221,7
@@
float SymbolQualitySignals::evaluate() const {
Score *= 0.8f;
break;
case Macro:
- Score *= 0.
2
f;
+ Score *= 0.
5
f;
break;
case Unknown:
case Constructor: // No boost constructors so they are after class types.