clang 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::analyze_printf::PrintfConversionSpecifier Class Reference

#include "clang/AST/FormatString.h"

Inheritance diagram for clang::analyze_printf::PrintfConversionSpecifier:
Inheritance graph
[legend]

Public Member Functions

 PrintfConversionSpecifier ()
 
 PrintfConversionSpecifier (const char *pos, Kind k)
 
bool isObjCArg () const
 
bool isDoubleArg () const
 
- Public Member Functions inherited from clang::analyze_format_string::ConversionSpecifier
 ConversionSpecifier (bool isPrintf=true)
 
 ConversionSpecifier (bool isPrintf, const char *pos, Kind k)
 
const char * getStart () const
 
StringRef getCharacters () const
 
bool consumesDataArgument () const
 
Kind getKind () const
 
void setKind (Kind k)
 
unsigned getLength () const
 
void setEndScanList (const char *pos)
 
bool isIntArg () const
 
bool isUIntArg () const
 
bool isAnyIntArg () const
 
bool isDoubleArg () const
 
bool isFixedPointArg () const
 
const char * toString () const
 
bool isPrintfKind () const
 
std::optional< ConversionSpecifiergetStandardSpecifier () const
 

Static Public Member Functions

static bool classof (const analyze_format_string::ConversionSpecifier *CS)
 

Additional Inherited Members

- Public Types inherited from clang::analyze_format_string::ConversionSpecifier
enum  Kind {
  InvalidSpecifier = 0 , cArg , dArg , DArg ,
  iArg , bArg , BArg , IntArgBeg = dArg ,
  IntArgEnd = BArg , oArg , OArg , uArg ,
  UArg , xArg , XArg , UIntArgBeg = oArg ,
  UIntArgEnd = XArg , fArg , FArg , eArg ,
  EArg , gArg , GArg , aArg ,
  AArg , DoubleArgBeg = fArg , DoubleArgEnd = AArg , sArg ,
  pArg , nArg , PercentArg , CArg ,
  SArg , PArg , ZArg , kArg ,
  KArg , rArg , RArg , FixedPointArgBeg = kArg ,
  FixedPointArgEnd = RArg , ObjCObjArg , ObjCBeg = ObjCObjArg , ObjCEnd = ObjCObjArg ,
  FreeBSDbArg , FreeBSDDArg , FreeBSDrArg , FreeBSDyArg ,
  PrintErrno , PrintfConvBeg = ObjCObjArg , PrintfConvEnd = PrintErrno , ScanListArg ,
  ScanfConvBeg = ScanListArg , ScanfConvEnd = ScanListArg
}
 
- Protected Attributes inherited from clang::analyze_format_string::ConversionSpecifier
bool IsPrintf
 
const char * Position
 
const char * EndScanList
 
Kind kind
 

Detailed Description

Definition at line 501 of file FormatString.h.

Constructor & Destructor Documentation

◆ PrintfConversionSpecifier() [1/2]

clang::analyze_printf::PrintfConversionSpecifier::PrintfConversionSpecifier ( )
inline

Definition at line 504 of file FormatString.h.

◆ PrintfConversionSpecifier() [2/2]

clang::analyze_printf::PrintfConversionSpecifier::PrintfConversionSpecifier ( const char *  pos,
Kind  k 
)
inline

Definition at line 507 of file FormatString.h.

Member Function Documentation

◆ classof()

static bool clang::analyze_printf::PrintfConversionSpecifier::classof ( const analyze_format_string::ConversionSpecifier CS)
inlinestatic

◆ isDoubleArg()

bool clang::analyze_printf::PrintfConversionSpecifier::isDoubleArg ( ) const
inline

◆ isObjCArg()

bool clang::analyze_printf::PrintfConversionSpecifier::isObjCArg ( ) const
inline

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