class ArgType

Declaration

class ArgType { /* full declaration omitted */ };

Declared at: clang/include/clang/AST/FormatString.h:249

Member Variables

private const clang::analyze_format_string::ArgType::Kind K
private clang::QualType T
private const char* Name = nullptr
private bool Ptr = false
private clang::analyze_format_string::ArgType::TypeKind TK = TypeKind::DontCare

Method Overview

  • public ArgType(clang::analyze_format_string::ArgType::Kind K = UnknownTy, const char * N = nullptr)
  • public ArgType(clang::QualType T, const char * N = nullptr)
  • public ArgType(clang::CanQualType T)
  • public static clang::analyze_format_string::ArgType Invalid()
  • public static clang::analyze_format_string::ArgType PtrTo(const clang::analyze_format_string::ArgType & A)
  • public clang::QualType getRepresentativeType(clang::ASTContext & C) const
  • public std::string getRepresentativeTypeName(clang::ASTContext & C) const
  • public bool isPtrdiffT() const
  • public bool isSizeT() const
  • public bool isValid() const
  • public static clang::analyze_format_string::ArgType makePtrdiffT(const clang::analyze_format_string::ArgType & A)
  • public static clang::analyze_format_string::ArgType makeSizeT(const clang::analyze_format_string::ArgType & A)
  • public clang::analyze_format_string::ArgType makeVectorType(clang::ASTContext & C, unsigned int NumElts) const
  • public clang::analyze_format_string::ArgType::MatchKind matchesType(clang::ASTContext & C, clang::QualType argTy) const

Methods

ArgType(
    clang::analyze_format_string::ArgType::Kind
        K = UnknownTy,
    const char* N = nullptr)

Declared at: clang/include/clang/AST/FormatString.h:282

Parameters

clang::analyze_format_string::ArgType::Kind K = UnknownTy
const char* N = nullptr

ArgType(clang::QualType T,
        const char* N = nullptr)

Declared at: clang/include/clang/AST/FormatString.h:283

Parameters

clang::QualType T
const char* N = nullptr

ArgType(clang::CanQualType T)

Declared at: clang/include/clang/AST/FormatString.h:284

Parameters

clang::CanQualType T

static clang::analyze_format_string::ArgType
Invalid()

Declared at: clang/include/clang/AST/FormatString.h:286

static clang::analyze_format_string::ArgType
PtrTo(const clang::analyze_format_string::ArgType&
          A)

Description

Create an ArgType which corresponds to the type pointer to A.

Declared at: clang/include/clang/AST/FormatString.h:294

Parameters

const clang::analyze_format_string::ArgType& A

clang::QualType getRepresentativeType(
    clang::ASTContext& C) const

Declared at: clang/include/clang/AST/FormatString.h:318

Parameters

clang::ASTContext& C

std::string getRepresentativeTypeName(
    clang::ASTContext& C) const

Declared at: clang/include/clang/AST/FormatString.h:322

Parameters

clang::ASTContext& C

bool isPtrdiffT() const

Declared at: clang/include/clang/AST/FormatString.h:291

bool isSizeT() const

Declared at: clang/include/clang/AST/FormatString.h:289

bool isValid() const

Declared at: clang/include/clang/AST/FormatString.h:287

static clang::analyze_format_string::ArgType
makePtrdiffT(
    const clang::analyze_format_string::ArgType&
        A)

Description

Create an ArgType which corresponds to the ptrdiff_t/unsigned ptrdiff_t type.

Declared at: clang/include/clang/AST/FormatString.h:310

Parameters

const clang::analyze_format_string::ArgType& A

static clang::analyze_format_string::ArgType
makeSizeT(
    const clang::analyze_format_string::ArgType&
        A)

Description

Create an ArgType which corresponds to the size_t/ssize_t type.

Declared at: clang/include/clang/AST/FormatString.h:302

Parameters

const clang::analyze_format_string::ArgType& A

clang::analyze_format_string::ArgType
makeVectorType(clang::ASTContext& C,
               unsigned int NumElts) const

Declared at: clang/include/clang/AST/FormatString.h:320

Parameters

clang::ASTContext& C
unsigned int NumElts

clang::analyze_format_string::ArgType::MatchKind
matchesType(clang::ASTContext& C,
            clang::QualType argTy) const

Declared at: clang/include/clang/AST/FormatString.h:316

Parameters

clang::ASTContext& C
clang::QualType argTy