clang API Documentation

Public Types | Public Member Functions
clang::ast_matchers::dynamic::ArgKind Class Reference

Kind identifier. More...

#include <VariantValue.h>

List of all members.

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.

Detailed Description

Kind identifier.

It supports all types that VariantValue can contain.

Definition at line 35 of file VariantValue.h.


Member Enumeration Documentation

Enumerator:
AK_Matcher 
AK_Unsigned 
AK_String 

Definition at line 37 of file VariantValue.h.


Constructor & Destructor Documentation

Constructor for non-matcher types.

Definition at line 43 of file VariantValue.h.

References AK_Matcher.

Constructor for matcher types.

Definition at line 46 of file VariantValue.h.


Member Function Documentation

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().

Definition at line 50 of file VariantValue.h.

References AK_Matcher.

Referenced by clang::ast_matchers::dynamic::VariantValue::isConvertibleTo().

Determines if this type can be converted to To.

Parameters:
Tothe requested destination type.
Specificityvalue 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().

bool clang::ast_matchers::dynamic::ArgKind::operator< ( const ArgKind Other) const [inline]

Definition at line 63 of file VariantValue.h.

References AK_Matcher.


The documentation for this class was generated from the following files: