clang 20.0.0git
|
Kind identifier. More...
#include "clang/ASTMatchers/Dynamic/VariantValue.h"
Public Types | |
enum | Kind { AK_Matcher , AK_Node , AK_Boolean , AK_Double , AK_Unsigned , AK_String } |
Public Member Functions | |
ArgKind (Kind K) | |
Constructor for non-matcher types. | |
Kind | getArgKind () const |
ASTNodeKind | getMatcherKind () const |
ASTNodeKind | getNodeKind () const |
bool | isConvertibleTo (ArgKind To, unsigned *Specificity) const |
Determines if this type can be converted to To . | |
bool | operator< (const ArgKind &Other) const |
std::string | asString () const |
String representation of the type. | |
Static Public Member Functions | |
static ArgKind | MakeMatcherArg (ASTNodeKind MatcherKind) |
Constructor for matcher types. | |
static ArgKind | MakeNodeArg (ASTNodeKind MatcherKind) |
Kind identifier.
It supports all types that VariantValue can contain.
Definition at line 34 of file VariantValue.h.
Enumerator | |
---|---|
AK_Matcher | |
AK_Node | |
AK_Boolean | |
AK_Double | |
AK_Unsigned | |
AK_String |
Definition at line 36 of file VariantValue.h.
|
inline |
Constructor for non-matcher types.
Definition at line 45 of file VariantValue.h.
References AK_Matcher.
std::string clang::ast_matchers::dynamic::ArgKind::asString | ( | ) | const |
String representation of the type.
Definition at line 23 of file VariantValue.cpp.
References AK_Boolean, AK_Double, AK_Matcher, AK_Node, AK_String, AK_Unsigned, clang::ASTNodeKind::asStringRef(), and getArgKind().
|
inline |
Definition at line 56 of file VariantValue.h.
Referenced by asString().
|
inline |
Definition at line 57 of file VariantValue.h.
References AK_Matcher.
|
inline |
Definition at line 61 of file VariantValue.h.
References AK_Node.
bool clang::ast_matchers::dynamic::ArgKind::isConvertibleTo | ( | ArgKind | To, |
unsigned * | Specificity | ||
) | const |
Determines if this type can be converted to To
.
To | the requested destination type. |
Specificity | value corresponding to the "specificity" of the conversion. |
Definition at line 41 of file VariantValue.cpp.
References AK_Matcher, AK_Node, and clang::ASTNodeKind::isBaseOf().
Referenced by clang::ast_matchers::dynamic::VariantMatcher::SinglePayload::isConvertibleTo(), and clang::ast_matchers::dynamic::VariantMatcher::PolymorphicPayload::isConvertibleTo().
|
inlinestatic |
Constructor for matcher types.
Definition at line 48 of file VariantValue.h.
References AK_Matcher.
Referenced by clang::ast_matchers::dynamic::Registry::getAcceptedCompletionTypes(), clang::ast_matchers::dynamic::internal::VariadicOperatorMatcherDescriptor::getArgKinds(), clang::ast_matchers::dynamic::internal::MapAnyOfMatcherDescriptor::getArgKinds(), clang::ast_matchers::dynamic::internal::ArgTypeTraits< ast_matchers::internal::Matcher< T > >::getKind(), clang::ast_matchers::dynamic::VariantMatcher::SinglePayload::isConvertibleTo(), clang::ast_matchers::dynamic::VariantMatcher::PolymorphicPayload::isConvertibleTo(), and clang::ast_matchers::dynamic::internal::isRetKindConvertibleTo().
|
inlinestatic |
Definition at line 52 of file VariantValue.h.
References AK_Node.
Referenced by clang::ast_matchers::dynamic::internal::MapAnyOfBuilderDescriptor::getArgKinds().
Definition at line 74 of file VariantValue.h.
References AK_Matcher, AK_Node, and clang::Other.