clang 22.0.0git
|
#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.
Referenced by isConvertibleTo(), MakeMatcherArg(), MakeNodeArg(), and operator<().
std::string clang::ast_matchers::dynamic::ArgKind::asString | ( | ) | const |
String representation of the type.
Definition at line 22 of file VariantValue.cpp.
References AK_Boolean, AK_Double, AK_Matcher, AK_Node, AK_String, AK_Unsigned, 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 40 of file VariantValue.cpp.
References AK_Matcher, AK_Node, and ArgKind().
|
inlinestatic |
Constructor for matcher types.
Definition at line 48 of file VariantValue.h.
References AK_Matcher, and ArgKind().
Referenced by clang::ast_matchers::dynamic::Registry::getAcceptedCompletionTypes(), clang::ast_matchers::dynamic::internal::MapAnyOfMatcherDescriptor::getArgKinds(), clang::ast_matchers::dynamic::internal::VariadicOperatorMatcherDescriptor::getArgKinds(), clang::ast_matchers::dynamic::internal::ArgTypeTraits< ast_matchers::internal::Matcher< T > >::getKind(), clang::ast_matchers::dynamic::VariantMatcher::PolymorphicPayload::isConvertibleTo(), clang::ast_matchers::dynamic::VariantMatcher::SinglePayload::isConvertibleTo(), and clang::ast_matchers::dynamic::internal::isRetKindConvertibleTo().
|
inlinestatic |
Definition at line 52 of file VariantValue.h.
References AK_Node, and ArgKind().
Referenced by clang::ast_matchers::dynamic::internal::MapAnyOfBuilderDescriptor::getArgKinds().
Definition at line 74 of file VariantValue.h.
References AK_Matcher, AK_Node, ArgKind(), and clang::Other.