clang
10.0.0git
|
Kind identifier. More...
#include "clang/ASTMatchers/Dynamic/VariantValue.h"
Public Types | |
enum | Kind { AK_Matcher, AK_Boolean, AK_Double, AK_Unsigned, AK_String } |
Public Member Functions | |
ArgKind (Kind K) | |
Constructor for non-matcher types. More... | |
ArgKind (ast_type_traits::ASTNodeKind MatcherKind) | |
Constructor for matcher types. More... | |
Kind | getArgKind () const |
ast_type_traits::ASTNodeKind | getMatcherKind () const |
bool | isConvertibleTo (ArgKind To, unsigned *Specificity) const |
Determines if this type can be converted to To . More... | |
bool | operator< (const ArgKind &Other) const |
std::string | asString () const |
String representation of the type. More... | |
Kind identifier.
It supports all types that VariantValue can contain.
Definition at line 33 of file VariantValue.h.
Enumerator | |
---|---|
AK_Matcher | |
AK_Boolean | |
AK_Double | |
AK_Unsigned | |
AK_String |
Definition at line 35 of file VariantValue.h.
|
inline |
Constructor for non-matcher types.
Definition at line 43 of file VariantValue.h.
References AK_Matcher.
Referenced by clang::ast_matchers::dynamic::VariantMatcher::SinglePayload::isConvertibleTo().
|
inline |
Constructor for matcher types.
Definition at line 46 of file VariantValue.h.
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_String, AK_Unsigned, clang::ast_type_traits::ASTNodeKind::asStringRef(), and getArgKind().
Referenced by operator<().
|
inline |
Definition at line 49 of file VariantValue.h.
Referenced by asString(), and clang::ast_matchers::dynamic::VariantValue::isConvertibleTo().
|
inline |
Definition at line 50 of file VariantValue.h.
References AK_Matcher, and isConvertibleTo().
Referenced by clang::ast_matchers::dynamic::VariantValue::isConvertibleTo().
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 38 of file VariantValue.cpp.
References AK_Matcher, and clang::ast_type_traits::ASTNodeKind::isBaseOf().
Referenced by getMatcherKind(), and clang::ast_matchers::dynamic::VariantMatcher::SinglePayload::isConvertibleTo().
Definition at line 63 of file VariantValue.h.
References AK_Matcher, and asString().