We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e154f1 commit 888969fCopy full SHA for 888969f
clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
@@ -196,10 +196,10 @@ TEST(DecisionForestRankingModel, ReferencesAffectRanking) {
196
197
TEST(DecisionForestRankingModel, DecisionForestScorerCallbackTest) {
198
clangd::CodeCompleteOptions Opts;
199
- constexpr float MagicNumber = 1234.5678;
+ constexpr float MagicNumber = 1234.5678f;
200
Opts.RankingModel = CodeCompleteOptions::DecisionForest;
201
- Opts.DecisionForestScorer = [](const SymbolQualitySignals &,
202
- const SymbolRelevanceSignals &, float Base) {
+ Opts.DecisionForestScorer = [&](const SymbolQualitySignals &,
+ const SymbolRelevanceSignals &, float Base) {
203
DecisionForestScores Scores;
204
Scores.Total = MagicNumber;
205
Scores.ExcludingName = MagicNumber;
0 commit comments