clang API Documentation
#include <FormatString.h>
Public Member Functions | |
ScanfSpecifier () | |
void | setSuppressAssignment (const char *position) |
const OptionalFlag & | getSuppressAssignment () const |
void | setConversionSpecifier (const ScanfConversionSpecifier &cs) |
const ScanfConversionSpecifier & | getConversionSpecifier () const |
bool | consumesDataArgument () const |
ArgType | getArgType (ASTContext &Ctx) const |
bool | fixType (QualType QT, QualType RawQT, const LangOptions &LangOpt, ASTContext &Ctx) |
void | toString (raw_ostream &os) const |
Static Public Member Functions | |
static ScanfSpecifier | Parse (const char *beg, const char *end) |
Definition at line 550 of file FormatString.h.
clang::analyze_scanf::ScanfSpecifier::ScanfSpecifier | ( | ) | [inline] |
Definition at line 553 of file FormatString.h.
bool clang::analyze_scanf::ScanfSpecifier::consumesDataArgument | ( | ) | const [inline] |
Definition at line 574 of file FormatString.h.
References clang::analyze_format_string::ConversionSpecifier::consumesDataArgument(), and clang::analyze_format_string::FormatSpecifier::CS.
bool ScanfSpecifier::fixType | ( | QualType | QT, |
QualType | RawQT, | ||
const LangOptions & | LangOpt, | ||
ASTContext & | Ctx | ||
) |
Definition at line 402 of file ScanfFormatString.cpp.
References clang::Type::getAs(), clang::ASTContext::getAsConstantArrayType(), clang::BuiltinType::getKind(), clang::Type::getPointeeType(), clang::ASTContext::getTargetInfo(), clang::Type::isAnyCharacterType(), clang::Type::isPointerType(), clang::Type::isRealFloatingType(), clang::Type::isSignedIntegerType(), clang::Type::isUnsignedIntegerType(), clang::Type::isWideCharType(), and clang::ArrayType::Normal.
ArgType ScanfSpecifier::getArgType | ( | ASTContext & | Ctx | ) | const |
Definition at line 221 of file ScanfFormatString.cpp.
References clang::analyze_format_string::ConversionSpecifier::consumesDataArgument(), clang::ASTContext::DoubleTy, clang::ASTContext::FloatTy, clang::ASTContext::getIntMaxType(), clang::analyze_format_string::ConversionSpecifier::getKind(), clang::ASTContext::getPointerDiffType(), clang::ASTContext::getSizeType(), clang::ASTContext::getTargetInfo(), clang::TargetInfo::getTriple(), clang::ASTContext::getUIntMaxType(), clang::ASTContext::getWideCharType(), clang::ASTContext::IntTy, clang::ASTContext::LongDoubleTy, 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.
const ScanfConversionSpecifier& clang::analyze_scanf::ScanfSpecifier::getConversionSpecifier | ( | ) | const [inline] |
Definition at line 570 of file FormatString.h.
References clang::analyze_format_string::FormatSpecifier::CS.
const OptionalFlag& clang::analyze_scanf::ScanfSpecifier::getSuppressAssignment | ( | ) | const [inline] |
Definition at line 562 of file FormatString.h.
static ScanfSpecifier clang::analyze_scanf::ScanfSpecifier::Parse | ( | const char * | beg, |
const char * | end | ||
) | [static] |
void clang::analyze_scanf::ScanfSpecifier::setConversionSpecifier | ( | const ScanfConversionSpecifier & | cs | ) | [inline] |
Definition at line 566 of file FormatString.h.
References clang::analyze_format_string::FormatSpecifier::CS.
void clang::analyze_scanf::ScanfSpecifier::setSuppressAssignment | ( | const char * | position | ) | [inline] |
Definition at line 557 of file FormatString.h.
void ScanfSpecifier::toString | ( | raw_ostream & | os | ) | const |
Definition at line 512 of file ScanfFormatString.cpp.