clang  5.0.0
Macros | Enumerations | Functions
ParsePragma.cpp File Reference
#include "clang/AST/ASTContext.h"
#include "clang/Basic/PragmaKinds.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/Parser.h"
#include "clang/Parse/RAIIObjectsForParser.h"
#include "clang/Sema/LoopHint.h"
#include "clang/Sema/Scope.h"
#include "llvm/ADT/StringSwitch.h"
#include "clang/Parse/AttrSubMatchRulesParserStringSwitches.inc"
#include "clang/Basic/AttrSubMatchRulesList.inc"
Include dependency graph for ParsePragma.cpp:

Go to the source code of this file.

Macros

#define ATTR_MATCH_RULE(Value, Spelling, IsAbstract)
 

Enumerations

enum  OpenCLExtState : char
 
enum  MissingAttributeSubjectRulesRecoveryPoint
 Describes the stage at which attribute subject rule parsing was interruped. More...
 

Functions

static std::string PragmaLoopHintString (Token PragmaName, Token Option)
 
static StringRef getIdentifier (const Token &Tok)
 
static bool isAbstractAttrMatcherRule (attr::SubjectMatchRule Rule)
 
static void diagnoseExpectedAttributeSubjectSubRule (Parser &PRef, attr::SubjectMatchRule PrimaryRule, StringRef PrimaryRuleName, SourceLocation SubRuleLoc)
 
static void diagnoseUnknownAttributeSubjectSubRule (Parser &PRef, attr::SubjectMatchRule PrimaryRule, StringRef PrimaryRuleName, StringRef SubRuleName, SourceLocation SubRuleLoc)
 
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. More...
 

Macro Definition Documentation

#define ATTR_MATCH_RULE (   Value,
  Spelling,
  IsAbstract 
)
Value:
case Value: \
return IsAbstract;
return(__x >> __y)|(__x<< (32-__y))

Enumeration Type Documentation

Describes the stage at which attribute subject rule parsing was interruped.

Definition at line 1173 of file ParsePragma.cpp.

enum OpenCLExtState : char

Definition at line 547 of file ParsePragma.cpp.

Function Documentation

static void diagnoseExpectedAttributeSubjectSubRule ( Parser PRef,
attr::SubjectMatchRule  PrimaryRule,
StringRef  PrimaryRuleName,
SourceLocation  SubRuleLoc 
)
static

Definition at line 1036 of file ParsePragma.cpp.

References clang::Parser::Diag().

static void diagnoseUnknownAttributeSubjectSubRule ( Parser PRef,
attr::SubjectMatchRule  PrimaryRule,
StringRef  PrimaryRuleName,
StringRef  SubRuleName,
SourceLocation  SubRuleLoc 
)
static

Definition at line 1049 of file ParsePragma.cpp.

References clang::Parser::Diag().

static StringRef getIdentifier ( const Token Tok)
static
static bool isAbstractAttrMatcherRule ( attr::SubjectMatchRule  Rule)
static

Definition at line 1024 of file ParsePragma.cpp.

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