clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions
clang::analyze_format_string::ArgTypeResult Class Reference

#include <FormatString.h>

List of all members.

Public Types

enum  Kind {
  UnknownTy, InvalidTy, SpecificTy, ObjCPointerTy,
  CPointerTy, AnyCharTy, CStrTy, WCStrTy,
  WIntTy
}

Public Member Functions

 ArgTypeResult (Kind k=UnknownTy)
 ArgTypeResult (Kind k, const char *n)
 ArgTypeResult (QualType t)
 ArgTypeResult (QualType t, const char *n)
 ArgTypeResult (CanQualType t)
bool isValid () const
const QualTypegetSpecificType () const
bool matchesType (ASTContext &C, QualType argTy) const
bool matchesAnyObjCObjectRef () const
QualType getRepresentativeType (ASTContext &C) const
std::string getRepresentativeTypeName (ASTContext &C) const

Static Public Member Functions

static ArgTypeResult Invalid ()

Detailed Description

Definition at line 204 of file FormatString.h.


Member Enumeration Documentation

Enumerator:
UnknownTy 
InvalidTy 
SpecificTy 
ObjCPointerTy 
CPointerTy 
AnyCharTy 
CStrTy 
WCStrTy 
WIntTy 

Definition at line 206 of file FormatString.h.


Constructor & Destructor Documentation

clang::analyze_format_string::ArgTypeResult::ArgTypeResult ( Kind  k = UnknownTy) [inline]

Definition at line 214 of file FormatString.h.

clang::analyze_format_string::ArgTypeResult::ArgTypeResult ( Kind  k,
const char *  n 
) [inline]

Definition at line 215 of file FormatString.h.

clang::analyze_format_string::ArgTypeResult::ArgTypeResult ( QualType  t) [inline]

Definition at line 216 of file FormatString.h.

clang::analyze_format_string::ArgTypeResult::ArgTypeResult ( QualType  t,
const char *  n 
) [inline]

Definition at line 217 of file FormatString.h.

clang::analyze_format_string::ArgTypeResult::ArgTypeResult ( CanQualType  t) [inline]

Definition at line 218 of file FormatString.h.


Member Function Documentation

QualType ArgTypeResult::getRepresentativeType ( ASTContext C) const
std::string ArgTypeResult::getRepresentativeTypeName ( ASTContext C) const

Definition at line 390 of file FormatString.cpp.

References S.

const QualType* clang::analyze_format_string::ArgTypeResult::getSpecificType ( ) const [inline]

Definition at line 224 of file FormatString.h.

References SpecificTy.

static ArgTypeResult clang::analyze_format_string::ArgTypeResult::Invalid ( ) [inline, static]

Definition at line 220 of file FormatString.h.

bool clang::analyze_format_string::ArgTypeResult::isValid ( ) const [inline]

Definition at line 222 of file FormatString.h.

References InvalidTy.

bool clang::analyze_format_string::ArgTypeResult::matchesAnyObjCObjectRef ( ) const [inline]

Definition at line 230 of file FormatString.h.

References ObjCPointerTy.

bool ArgTypeResult::matchesType ( ASTContext C,
QualType  argTy 
) const

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