clang 20.0.0git
Public Types | Public Member Functions | List of all members
clang::analyze_format_string::LengthModifier Class Reference

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

#include "clang/AST/FormatString.h"

Public Types

enum  Kind {
  None , AsChar , AsShort , AsShortLong ,
  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 65 of file FormatString.h.

Member Enumeration Documentation

◆ Kind

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

Definition at line 67 of file FormatString.h.

Constructor & Destructor Documentation

◆ LengthModifier() [1/2]

clang::analyze_format_string::LengthModifier::LengthModifier ( )
inline

Definition at line 88 of file FormatString.h.

◆ LengthModifier() [2/2]

clang::analyze_format_string::LengthModifier::LengthModifier ( const char *  pos,
Kind  k 
)
inline

Definition at line 90 of file FormatString.h.

Member Function Documentation

◆ getKind()

Kind clang::analyze_format_string::LengthModifier::getKind ( ) const
inline

◆ getLength()

unsigned clang::analyze_format_string::LengthModifier::getLength ( ) const
inline

Definition at line 97 of file FormatString.h.

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

◆ getStart()

const char * clang::analyze_format_string::LengthModifier::getStart ( ) const
inline

Definition at line 93 of file FormatString.h.

◆ setKind()

void clang::analyze_format_string::LengthModifier::setKind ( Kind  k)
inline

◆ toString()

const char * analyze_format_string::LengthModifier::toString ( ) const

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