clang API Documentation
#include "clang/Analysis/Analyses/FormatString.h"
#include "FormatStringParsing.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/AST/BuiltinTypes.def"
Go to the source code of this file.
Defines | |
#define | SIGNED_TYPE(Id, SingletonId) |
#define | UNSIGNED_TYPE(Id, SingletonId) |
#define | FLOATING_TYPE(Id, SingletonId) |
#define | BUILTIN_TYPE(Id, SingletonId) case BuiltinType::Id: |
Typedefs | |
typedef clang::analyze_format_string::SpecifierResult < PrintfSpecifier > | PrintfSpecifierResult |
Functions | |
static bool | ParsePrecision (FormatStringHandler &H, PrintfSpecifier &FS, const char *Start, const char *&Beg, const char *E, unsigned *argIndex) |
static PrintfSpecifierResult | ParsePrintfSpecifier (FormatStringHandler &H, const char *&Beg, const char *E, unsigned &argIndex, const LangOptions &LO, const TargetInfo &Target, bool Warn) |
#define BUILTIN_TYPE | ( | Id, | |
SingletonId | |||
) | case BuiltinType::Id: |
#define FLOATING_TYPE | ( | Id, | |
SingletonId | |||
) |
#define SIGNED_TYPE | ( | Id, | |
SingletonId | |||
) |
#define UNSIGNED_TYPE | ( | Id, | |
SingletonId | |||
) |
Definition at line 29 of file PrintfFormatString.cpp.
static bool ParsePrecision | ( | FormatStringHandler & | H, |
PrintfSpecifier & | FS, | ||
const char * | Start, | ||
const char *& | Beg, | ||
const char * | E, | ||
unsigned * | argIndex | ||
) | [static] |
Definition at line 37 of file PrintfFormatString.cpp.
References clang::analyze_format_string::OptionalAmount::isInvalid(), clang::analyze_format_string::ParseNonPositionAmount(), clang::analyze_format_string::ParsePositionAmount(), clang::analyze_format_string::PrecisionPos, and clang::analyze_printf::PrintfSpecifier::setPrecision().
Referenced by ParsePrintfSpecifier().
static PrintfSpecifierResult ParsePrintfSpecifier | ( | FormatStringHandler & | H, |
const char *& | Beg, | ||
const char * | E, | ||
unsigned & | argIndex, | ||
const LangOptions & | LO, | ||
const TargetInfo & | Target, | ||
bool | Warn | ||
) | [static] |
Definition at line 52 of file PrintfFormatString.cpp.
References clang::analyze_format_string::ConversionSpecifier::consumesDataArgument(), clang::TargetInfo::getTriple(), clang::analyze_format_string::FormatStringHandler::HandleIncompleteSpecifier(), clang::analyze_format_string::FormatStringHandler::HandleInvalidPrintfConversionSpecifier(), clang::analyze_format_string::FormatStringHandler::HandleNullChar(), clang::analyze_format_string::ParseArgPosition(), clang::analyze_format_string::ParseFieldWidth(), clang::analyze_format_string::ParseLengthModifier(), and ParsePrecision().
Referenced by clang::analyze_format_string::ParseFormatStringHasSArg(), and clang::analyze_format_string::ParsePrintfString().