clang API Documentation
#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"
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 OPENCLEXT | ( | nm | ) | f.nm = 0; |
#define OPENCLEXT | ( | nm | ) | else if (ename->isStr(#nm)) { f.nm = state; } |
static void ParseAlignPragma | ( | Preprocessor & | PP, |
Token & | FirstTok, | ||
bool | IsOptions | ||
) | [static] |
Definition at line 1084 of file ParsePragma.cpp.
References clang::Preprocessor::Diag(), clang::Preprocessor::EnterTokenStream(), clang::Token::getIdentifierInfo(), clang::Token::getLocation(), clang::Preprocessor::getPreprocessorAllocator(), clang::Token::isNot(), clang::IdentifierInfo::isStr(), clang::Preprocessor::Lex(), clang::Sema::POAK_Mac68k, clang::Sema::POAK_Native, clang::Sema::POAK_Natural, clang::Sema::POAK_Packed, clang::Sema::POAK_Power, clang::Sema::POAK_Reset, clang::Token::setAnnotationValue(), clang::Token::setKind(), clang::Token::setLocation(), clang::Token::startToken(), and Token.
static bool ParseLoopHintValue | ( | Preprocessor & | PP, |
Token & | Tok, | ||
Token | PragmaName, | ||
Token | Option, | ||
bool | ValueInParens, | ||
PragmaLoopHintInfo & | Info | ||
) | [static] |
Parses loop or unroll pragma hint value and fills in Info.
Definition at line 1861 of file ParsePragma.cpp.
References clang::Preprocessor::Diag(), clang::comments::tok::eof, clang::Token::getLocation(), clang::Preprocessor::getPreprocessorAllocator(), clang::Token::is(), clang::Token::isNot(), clang::Preprocessor::Lex(), PragmaLoopHintInfo::Option, PragmaLoopHintInfo::PragmaName, clang::Token::setKind(), clang::Token::setLocation(), clang::Token::startToken(), Token, PragmaLoopHintInfo::Toks, and PragmaLoopHintInfo::TokSize.
static std::string PragmaLoopHintString | ( | Token | PragmaName, |
Token | Option | ||
) | [static] |
Definition at line 747 of file ParsePragma.cpp.
References clang::Token::getIdentifierInfo(), and clang::IdentifierInfo::getName().