clang API Documentation
Kind identifier. More...
#include <VariantValue.h>
Public Types | |
| enum | Kind { AK_Matcher, AK_Unsigned, AK_String } |
Public Member Functions | |
| ArgKind (Kind K) | |
| Constructor for non-matcher types. | |
| ArgKind (ast_type_traits::ASTNodeKind MatcherKind) | |
| Constructor for matcher types. | |
| 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. | |
| bool | operator< (const ArgKind &Other) const |
| std::string | asString () const |
| String representation of the type. | |
Kind identifier.
It supports all types that VariantValue can contain.
Definition at line 35 of file VariantValue.h.
Definition at line 37 of file VariantValue.h.
| clang::ast_matchers::dynamic::ArgKind::ArgKind | ( | Kind | K | ) | [inline] |
Constructor for non-matcher types.
Definition at line 43 of file VariantValue.h.
References AK_Matcher.
| clang::ast_matchers::dynamic::ArgKind::ArgKind | ( | ast_type_traits::ASTNodeKind | MatcherKind | ) | [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 23 of file VariantValue.cpp.
References AK_Matcher, AK_String, AK_Unsigned, clang::ast_type_traits::ASTNodeKind::asStringRef(), and getArgKind().
| Kind clang::ast_matchers::dynamic::ArgKind::getArgKind | ( | ) | const [inline] |
Definition at line 49 of file VariantValue.h.
Referenced by asString(), and clang::ast_matchers::dynamic::VariantValue::isConvertibleTo().
| ast_type_traits::ASTNodeKind clang::ast_matchers::dynamic::ArgKind::getMatcherKind | ( | ) | const [inline] |
Definition at line 50 of file VariantValue.h.
References AK_Matcher.
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 convertion. |
Definition at line 35 of file VariantValue.cpp.
References AK_Matcher, and clang::ast_type_traits::ASTNodeKind::isBaseOf().
Definition at line 63 of file VariantValue.h.
References AK_Matcher.