Searched refs:Specificity (Results 1 – 6 of 6) sorted by relevance
/external/clang/lib/ASTMatchers/Dynamic/ |
D | VariantValue.cpp | 35 bool ArgKind::isConvertibleTo(ArgKind To, unsigned *Specificity) const { in isConvertibleTo() 39 if (Specificity) in isConvertibleTo() 40 *Specificity = 1; in isConvertibleTo() 47 if (Specificity) in isConvertibleTo() 48 *Specificity = 100 - Distance; in isConvertibleTo() 102 unsigned *Specificity) const override { in isConvertibleTo() 104 .isConvertibleTo(Kind, Specificity); in isConvertibleTo() 160 unsigned *Specificity) const override { in isConvertibleTo() 169 if (Specificity) in isConvertibleTo() 170 *Specificity = MaxSpecificity; in isConvertibleTo() [all …]
|
D | Marshallers.h | 133 ast_type_traits::ASTNodeKind Kind, unsigned *Specificity = nullptr, 143 ast_type_traits::ASTNodeKind Kind, unsigned *Specificity, 146 if (ArgKind(NodeKind).isConvertibleTo(Kind, Specificity)) { 196 ast_type_traits::ASTNodeKind Kind, unsigned *Specificity, 198 return isRetKindConvertibleTo(RetKinds, Kind, Specificity, 350 ast_type_traits::ASTNodeKind Kind, unsigned *Specificity, 352 return isRetKindConvertibleTo(RetKinds, Kind, Specificity, 375 isConvertibleTo(ast_type_traits::ASTNodeKind Kind, unsigned *Specificity, 381 if (VariadicFuncMatcherDescriptor::isConvertibleTo(Kind, Specificity, 384 if (Specificity) [all …]
|
D | Parser.cpp | 442 Completion.Specificity > 0) { in addCompletion() 444 Completion.MatcherDecl, Completion.Specificity); in addCompletion() 453 unsigned Specificity; in getNamedValueCompletions() local 454 if (Entry.getValue().isConvertibleTo(AcceptedTypes, &Specificity)) { in getNamedValueCompletions() 457 Result.emplace_back(Entry.getKey(), Decl, Specificity); in getNamedValueCompletions() 583 if (A.Specificity != B.Specificity) in completeExpression() 584 return A.Specificity > B.Specificity; in completeExpression()
|
D | Registry.cpp | 436 unsigned Specificity; in getMatcherCompletions() local 438 if (I->second->isConvertibleTo(Kind.getMatcherKind(), &Specificity, in getMatcherCompletions() 440 if (MaxSpecificity < Specificity) in getMatcherCompletions() 441 MaxSpecificity = Specificity; in getMatcherCompletions()
|
/external/clang/include/clang/ASTMatchers/Dynamic/ |
D | Registry.h | 40 unsigned Specificity) in MatcherCompletion() 42 Specificity(Specificity) {} in MatcherCompletion() 55 unsigned Specificity; member
|
D | VariantValue.h | 61 bool isConvertibleTo(ArgKind To, unsigned *Specificity) const; 131 unsigned *Specificity) const = 0; 188 unsigned *Specificity) const { in isConvertibleTo() argument 190 return Value->isConvertibleTo(Kind, Specificity); in isConvertibleTo() 285 bool isConvertibleTo(ArgKind Kind, unsigned* Specificity) const; 295 bool isConvertibleTo(ArrayRef<ArgKind> Kinds, unsigned *Specificity) const;
|