Home
last modified time | relevance | path

Searched refs:Specificity (Results 1 – 6 of 6) sorted by relevance

/external/clang/lib/ASTMatchers/Dynamic/
DVariantValue.cpp35 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 …]
DMarshallers.h133 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 …]
DParser.cpp442 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()
DRegistry.cpp466 unsigned Specificity; in getMatcherCompletions() local
468 if (Matcher->isConvertibleTo(Kind.getMatcherKind(), &Specificity, in getMatcherCompletions()
470 if (MaxSpecificity < Specificity) in getMatcherCompletions()
471 MaxSpecificity = Specificity; in getMatcherCompletions()
/external/clang/include/clang/ASTMatchers/Dynamic/
DRegistry.h40 unsigned Specificity) in MatcherCompletion()
42 Specificity(Specificity) {} in MatcherCompletion()
55 unsigned Specificity; member
DVariantValue.h61 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;