clang API Documentation

Classes | Defines | Functions
ParsePragma.cpp File Reference
#include "RAIIObjectsForParser.h"
#include "clang/AST/ASTContext.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/Parser.h"
#include "clang/Sema/LoopHint.h"
#include "clang/Sema/Scope.h"
#include "llvm/ADT/StringSwitch.h"
#include "clang/Basic/OpenCLExtensions.def"
Include dependency graph for ParsePragma.cpp:

Go to the source code of this file.

Classes

struct  PragmaPackInfo
struct  PragmaLoopHintInfo

Defines

#define OPENCLEXT(nm)   f.nm = 0;
#define OPENCLEXT(nm)   else if (ename->isStr(#nm)) { f.nm = state; }

Functions

static std::string PragmaLoopHintString (Token PragmaName, Token Option)
static void ParseAlignPragma (Preprocessor &PP, Token &FirstTok, bool IsOptions)
static bool ParseLoopHintValue (Preprocessor &PP, Token &Tok, Token PragmaName, Token Option, bool ValueInParens, PragmaLoopHintInfo &Info)
 Parses loop or unroll pragma hint value and fills in Info.

Define Documentation

#define OPENCLEXT (   nm)    f.nm = 0;
#define OPENCLEXT (   nm)    else if (ename->isStr(#nm)) { f.nm = state; }

Function Documentation

static void ParseAlignPragma ( Preprocessor PP,
Token FirstTok,
bool  IsOptions 
) [static]
static bool ParseLoopHintValue ( Preprocessor PP,
Token Tok,
Token  PragmaName,
Token  Option,
bool  ValueInParens,
PragmaLoopHintInfo Info 
) [static]
static std::string PragmaLoopHintString ( Token  PragmaName,
Token  Option 
) [static]