clang API Documentation

Public Types | Public Member Functions
clang::analyze_format_string::LengthModifier Class Reference

Represents the length modifier in a format string in scanf/printf. More...

#include <FormatString.h>

List of all members.

Public Types

enum  Kind {
  None, AsChar, AsShort, AsLong,
  AsLongLong, AsQuad, AsIntMax, AsSizeT,
  AsPtrDiff, AsInt32, AsInt3264, AsInt64,
  AsLongDouble, AsAllocate, AsMAllocate, AsWide,
  AsWideChar = AsLong
}

Public Member Functions

 LengthModifier ()
 LengthModifier (const char *pos, Kind k)
const char * getStart () const
unsigned getLength () const
Kind getKind () const
void setKind (Kind k)
const char * toString () const

Detailed Description

Represents the length modifier in a format string in scanf/printf.

Definition at line 64 of file FormatString.h.


Member Enumeration Documentation

Enumerator:
None 
AsChar 
AsShort 
AsLong 
AsLongLong 
AsQuad 
AsIntMax 
AsSizeT 
AsPtrDiff 
AsInt32 
AsInt3264 
AsInt64 
AsLongDouble 
AsAllocate 
AsMAllocate 
AsWide 
AsWideChar 

Definition at line 66 of file FormatString.h.


Constructor & Destructor Documentation

Definition at line 86 of file FormatString.h.

Definition at line 88 of file FormatString.h.


Member Function Documentation

Definition at line 95 of file FormatString.h.

References AsChar, AsInt32, AsInt64, AsLongLong, and None.

Definition at line 91 of file FormatString.h.

Definition at line 479 of file FormatString.cpp.


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