clang 22.0.0git
StdVariantChecker.cpp File Reference

Go to the source code of this file.

Classes

class  StdVariantChecker

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
namespace  clang::ento
namespace  clang::ento::tagged_union_modeling

Functions

static const CXXConstructorDeclclang::ento::tagged_union_modeling::getConstructorDeclarationForCall (const CallEvent &Call)
bool clang::ento::tagged_union_modeling::isCopyConstructorCall (const CallEvent &Call)
bool clang::ento::tagged_union_modeling::isCopyAssignmentCall (const CallEvent &Call)
bool clang::ento::tagged_union_modeling::isMoveConstructorCall (const CallEvent &Call)
bool clang::ento::tagged_union_modeling::isMoveAssignmentCall (const CallEvent &Call)
static bool clang::ento::tagged_union_modeling::isStdType (const Type *Type, llvm::StringRef TypeName)
bool clang::ento::tagged_union_modeling::isStdVariant (const Type *Type)
static std::optional< ArrayRef< TemplateArgument > > getTemplateArgsFromVariant (const Type *VariantType)
static std::optional< QualTypegetNthTemplateTypeArgFromVariant (const Type *varType, unsigned i)
static bool isVowel (char a)
static llvm::StringRef indefiniteArticleBasedOnVowel (char a)

Function Documentation

◆ getNthTemplateTypeArgFromVariant()

std::optional< QualType > getNthTemplateTypeArgFromVariant ( const Type * varType,
unsigned i )
static

Definition at line 100 of file StdVariantChecker.cpp.

References getTemplateArgsFromVariant().

◆ getTemplateArgsFromVariant()

std::optional< ArrayRef< TemplateArgument > > getTemplateArgsFromVariant ( const Type * VariantType)
static

Definition at line 91 of file StdVariantChecker.cpp.

References clang::Type::getAs().

Referenced by getNthTemplateTypeArgFromVariant().

◆ indefiniteArticleBasedOnVowel()

llvm::StringRef indefiniteArticleBasedOnVowel ( char a)
static

Definition at line 122 of file StdVariantChecker.cpp.

References isVowel().

◆ isVowel()

bool isVowel ( char a)
static

Definition at line 109 of file StdVariantChecker.cpp.

Referenced by indefiniteArticleBasedOnVowel().