clang API Documentation
#include <FormatString.h>
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 QualType * | getSpecificType () 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 () |
Definition at line 204 of file FormatString.h.
Definition at line 206 of file FormatString.h.
| 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.
| QualType ArgTypeResult::getRepresentativeType | ( | ASTContext & | C | ) | const |
Definition at line 364 of file FormatString.cpp.
References clang::ASTContext::CharTy, clang::ASTContext::getPointerType(), clang::ASTContext::getWCharType(), clang::ASTContext::getWIntType(), clang::ASTContext::ObjCBuiltinIdTy, and clang::ASTContext::VoidPtrTy.
| 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 |
Definition at line 235 of file FormatString.cpp.
References clang::ASTContext::getCanonicalType(), clang::ASTContext::getCorrespondingUnsignedType(), clang::PointerType::getPointeeType(), clang::ASTContext::getPromotedIntegerType(), clang::CanQual< T >::getUnqualifiedType(), clang::ASTContext::getWCharType(), clang::ASTContext::getWIntType(), clang::ASTContext::IntTy, clang::ASTContext::LongLongTy, clang::ASTContext::LongTy, clang::ASTContext::ShortTy, clang::ASTContext::SignedCharTy, clang::ASTContext::UnsignedCharTy, clang::ASTContext::UnsignedIntTy, clang::ASTContext::UnsignedLongLongTy, clang::ASTContext::UnsignedLongTy, and clang::ASTContext::UnsignedShortTy.