clang  6.0.0svn
Macros | Typedefs | Functions
PrintfFormatString.cpp File Reference
#include "clang/Analysis/Analyses/FormatString.h"
#include "FormatStringParsing.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Basic/OpenCLImageTypes.def"
#include "clang/AST/BuiltinTypes.def"
Include dependency graph for PrintfFormatString.cpp:

Go to the source code of this file.

Macros

#define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix)   case BuiltinType::Id:
 
#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< PrintfSpecifierPrintfSpecifierResult
 

Functions

static bool ParsePrecision (FormatStringHandler &H, PrintfSpecifier &FS, const char *Start, const char *&Beg, const char *E, unsigned *argIndex)
 
static bool ParseObjCFlags (FormatStringHandler &H, PrintfSpecifier &FS, const char *FlagBeg, const char *E, bool Warn)
 
static PrintfSpecifierResult ParsePrintfSpecifier (FormatStringHandler &H, const char *&Beg, const char *E, unsigned &argIndex, const LangOptions &LO, const TargetInfo &Target, bool Warn, bool isFreeBSDKPrintf)
 

Macro Definition Documentation

◆ BUILTIN_TYPE

#define BUILTIN_TYPE (   Id,
  SingletonId 
)    case BuiltinType::Id:

◆ FLOATING_TYPE

#define FLOATING_TYPE (   Id,
  SingletonId 
)

◆ IMAGE_TYPE

#define IMAGE_TYPE (   ImgType,
  Id,
  SingletonId,
  Access,
  Suffix 
)    case BuiltinType::Id:

◆ SIGNED_TYPE

#define SIGNED_TYPE (   Id,
  SingletonId 
)

◆ UNSIGNED_TYPE

#define UNSIGNED_TYPE (   Id,
  SingletonId 
)

Typedef Documentation

◆ PrintfSpecifierResult

Definition at line 29 of file PrintfFormatString.cpp.

Function Documentation

◆ ParseObjCFlags()

static bool ParseObjCFlags ( FormatStringHandler H,
PrintfSpecifier FS,
const char *  FlagBeg,
const char *  E,
bool  Warn 
)
static

Definition at line 52 of file PrintfFormatString.cpp.

◆ ParsePrecision()

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.

◆ ParsePrintfSpecifier()

static PrintfSpecifierResult ParsePrintfSpecifier ( FormatStringHandler H,
const char *&  Beg,
const char *  E,
unsigned &  argIndex,
const LangOptions LO,
const TargetInfo Target,
bool  Warn,
bool  isFreeBSDKPrintf 
)
static

Definition at line 70 of file PrintfFormatString.cpp.