clang API Documentation

Public Types | Public Member Functions | Protected Attributes
clang::analyze_format_string::ConversionSpecifier Class Reference

#include <FormatString.h>

Inheritance diagram for clang::analyze_format_string::ConversionSpecifier:
Inheritance graph
[legend]
Collaboration diagram for clang::analyze_format_string::ConversionSpecifier:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Kind {
  InvalidSpecifier = 0, cArg, dArg, DArg,
  iArg, IntArgBeg = dArg, IntArgEnd = iArg, 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, ZArg,
  ObjCObjArg, ObjCBeg = ObjCObjArg, ObjCEnd = ObjCObjArg, PrintErrno,
  PrintfConvBeg = ObjCObjArg, PrintfConvEnd = PrintErrno, ScanListArg, ScanfConvBeg = ScanListArg,
  ScanfConvEnd = ScanListArg
}

Public Member Functions

 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
bool isIntArg () const
bool isUIntArg () const
bool isAnyIntArg () const
const char * toString () const
bool isPrintfKind () const
Optional< ConversionSpecifiergetStandardSpecifier () const

Protected Attributes

bool IsPrintf
const char * Position
const char * EndScanList
Kind kind

Detailed Description

Definition at line 120 of file FormatString.h.


Member Enumeration Documentation

Enumerator:
InvalidSpecifier 
cArg 
dArg 
DArg 
iArg 
IntArgBeg 
IntArgEnd 
oArg 
OArg 
uArg 
UArg 
xArg 
XArg 
UIntArgBeg 
UIntArgEnd 
fArg 
FArg 
eArg 
EArg 
gArg 
GArg 
aArg 
AArg 
DoubleArgBeg 
DoubleArgEnd 
sArg 
pArg 
nArg 
PercentArg 
CArg 
SArg 
ZArg 
ObjCObjArg 
ObjCBeg 
ObjCEnd 
PrintErrno 
PrintfConvBeg 
PrintfConvEnd 
ScanListArg 
ScanfConvBeg 
ScanfConvEnd 

Definition at line 122 of file FormatString.h.


Constructor & Destructor Documentation

Definition at line 174 of file FormatString.h.

clang::analyze_format_string::ConversionSpecifier::ConversionSpecifier ( bool  isPrintf,
const char *  pos,
Kind  k 
) [inline]

Definition at line 178 of file FormatString.h.


Member Function Documentation

Definition at line 185 of file FormatString.h.

References getLength(), and getStart().

Reimplemented in clang::analyze_printf::PrintfConversionSpecifier.

Definition at line 203 of file FormatString.h.

References EndScanList, and Position.

Referenced by getCharacters().

Definition at line 565 of file FormatString.cpp.

References dArg, DArg, getKind(), oArg, OArg, setKind(), uArg, and UArg.

Definition at line 181 of file FormatString.h.

References Position.

Referenced by getCharacters().

Definition at line 207 of file FormatString.h.

References IntArgBeg, IntArgEnd, and kind.

Referenced by clang::analyze_printf::PrintfSpecifier::getArgType().

Definition at line 208 of file FormatString.h.

References kind, UIntArgBeg, and UIntArgEnd.

Referenced by clang::analyze_printf::PrintfSpecifier::getArgType().

Definition at line 202 of file FormatString.h.

References kind.

Referenced by getStandardSpecifier().

const char * ConversionSpecifier::toString ( ) const

Member Data Documentation

Definition at line 217 of file FormatString.h.

Referenced by consumesDataArgument(), and isPrintfKind().

Definition at line 218 of file FormatString.h.

Referenced by getLength(), and getStart().


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