clang 24.0.0git
StdVariantChecker.cpp File Reference

Go to the source code of this file.

Classes

class  StdVariantChecker

Namespaces

namespace  clang
 Top level wrappers for InstallAPI frontend operations.
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 103 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 125 of file StdVariantChecker.cpp.

References isVowel().

◆ isVowel()

bool isVowel ( char a)
static

Definition at line 112 of file StdVariantChecker.cpp.

Referenced by indefiniteArticleBasedOnVowel().