Searched refs:Relevance (Results 1 – 8 of 8) sorted by relevance
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | QualityTests.cpp | 119 SymbolRelevanceSignals Relevance; in TEST() local 120 Relevance.merge(CodeCompletionResult(&findDecl(AST, "deprecated"), in TEST() 123 EXPECT_EQ(Relevance.NameMatch, SymbolRelevanceSignals().NameMatch); in TEST() 124 EXPECT_TRUE(Relevance.Forbidden); in TEST() 125 EXPECT_EQ(Relevance.Scope, SymbolRelevanceSignals::GlobalScope); in TEST() 127 Relevance = {}; in TEST() 128 Relevance.merge(CodeCompletionResult(&findDecl(AST, "main"), 42)); in TEST() 129 EXPECT_FLOAT_EQ(Relevance.SemaFileProximityScore, 1.0f) in TEST() 131 Relevance = {}; in TEST() 132 Relevance.merge(CodeCompletionResult(&findDecl(AST, "header"), 42)); in TEST() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | Quality.cpp | 494 const SymbolRelevanceSignals &Relevance, float Base) { in evaluateDecisionForest() argument 503 Relevance.calculateDerivedSignals(); in evaluateDecisionForest() 505 E.setIsForbidden(Relevance.Forbidden); in evaluateDecisionForest() 506 E.setIsInBaseClass(Relevance.InBaseClass); in evaluateDecisionForest() 508 E.setSemaFileProximityScore(Relevance.SemaFileProximityScore); in evaluateDecisionForest() 510 E.setSemaSaysInScope(Relevance.SemaSaysInScope); in evaluateDecisionForest() 511 E.setScope(Relevance.Scope); in evaluateDecisionForest() 512 E.setContextKind(Relevance.Context); in evaluateDecisionForest() 513 E.setIsInstanceMember(Relevance.IsInstanceMember); in evaluateDecisionForest() 514 E.setHadContextType(Relevance.HadContextType); in evaluateDecisionForest() [all …]
|
D | FindSymbols.cpp | 136 SymbolRelevanceSignals Relevance; in getWorkspaceSymbols() local 137 Relevance.Name = Sym.Name; in getWorkspaceSymbols() 138 Relevance.Query = SymbolRelevanceSignals::Generic; in getWorkspaceSymbols() 140 Relevance.InBaseClass = AnyScope && Scope != ReqScope; in getWorkspaceSymbols() 142 Relevance.NameMatch = *NameMatch; in getWorkspaceSymbols() 148 Relevance.merge(Sym); in getWorkspaceSymbols() 150 Relevance.evaluateHeuristics()); in getWorkspaceSymbols() 152 Quality, Relevance); in getWorkspaceSymbols() 162 Info.score = Score / Relevance.NameMatch; in getWorkspaceSymbols()
|
D | CodeComplete.cpp | 1642 const SymbolRelevanceSignals &Relevance) { in evaluateCompletion() argument 1648 Scores.Relevance = Relevance.evaluateHeuristics(); in evaluateCompletion() 1650 evaluateSymbolAndRelevance(Scores.Quality, Scores.Relevance); in evaluateCompletion() 1653 Scores.ExcludingName = Relevance.NameMatch in evaluateCompletion() 1654 ? Scores.Total / Relevance.NameMatch in evaluateCompletion() 1660 Quality, Relevance, Opts.DecisionForestBase); in evaluateCompletion() 1672 SymbolRelevanceSignals Relevance; in addCandidate() local 1673 Relevance.Context = CCContextKind; in addCandidate() 1674 Relevance.Name = Bundle.front().Name; in addCandidate() 1675 Relevance.FilterLength = HeuristicPrefix.Name.size(); in addCandidate() [all …]
|
D | CodeComplete.h | 246 float Relevance = 0.f; member
|
D | Quality.h | 178 const SymbolRelevanceSignals &Relevance, float Base);
|
D | XRefs.cpp | 527 SymbolRelevanceSignals Relevance; in locateSymbolTextually() local 528 Relevance.Name = Sym.Name; in locateSymbolTextually() 529 Relevance.Query = SymbolRelevanceSignals::Generic; in locateSymbolTextually() 530 Relevance.merge(Sym); in locateSymbolTextually() 532 Relevance.evaluateHeuristics()); in locateSymbolTextually() 534 Sym.Name, Score, Quality, Relevance); in locateSymbolTextually()
|
/external/llvm-project/libc/benchmarks/ |
D | RATIONALE.md | 18 1. **Relevance**: Benchmarks should measure relatively vital features.
|