Skip to content

RoseOpenMPPragmaCallback

Synopsis

Declared in <Clang/clang-frontend-private.hpp>

class RoseOpenMPPragmaCallback
    : public clang::PPCallbacks

Base Classes

Name Description
clang::PPCallbacks

Types

Name
VariantBoundary

Member Functions

Name
RoseOpenMPPragmaCallback
RoseOpenMPPragmaCallback( clang::SourceManager& SM, clang::Preprocessor& PP, bool structured_openmp_enabled, bool structured_openacc_enabled); [constructor]
EndOfMainFile
virtual void EndOfMainFile() override; [virtual]
PragmaDirective
virtual void PragmaDirective( clang::SourceLocation Loc, clang::PragmaIntroducerKind Introducer) override; [virtual]
getPragmaMap
std::map<std::pair<clang::FileID, unsigned int>, CapturedPragmaInfo> const& getPragmaMap() const;
getStructuredOpenMPIdentifierSpellings
std::set<std::string> getStructuredOpenMPIdentifierSpellings() const;
getVariantBoundaries
std::vector<VariantBoundary> const& getVariantBoundaries() const;
hasRoseSemanticPragmaInRange
bool hasRoseSemanticPragmaInRange(clang::SourceRange range) const;
isStructuredOpenACCPragmaAtLine
bool isStructuredOpenACCPragmaAtLine( clang::FileID file_id, unsigned int line) const;
isStructuredOpenMPPragmaAtLine
bool isStructuredOpenMPPragmaAtLine( clang::FileID file_id, unsigned int line) const;
materializeOpenACCCxxExactSemanticBindingsAtLine
ExactSemanticBindingSequence const* materializeOpenACCCxxExactSemanticBindingsAtLine( clang::FileID file_id, unsigned int line);
requireStructuredOpenMPDirectiveKindAtLine
OpenMPDirectiveKind requireStructuredOpenMPDirectiveKindAtLine( clang::FileID file_id, unsigned int line) const;
setSema
void setSema(clang::Sema* sema);

Static Member Functions

Name
isWhitespace
static bool isWhitespace(char c);
skipWhitespace
static size_t skipWhitespace( std::string const& str, size_t pos);

Private Types

Name
CapturedPragmaInfo
ExactSemanticBinding
ExactSemanticExpressionBindings
ExactSemanticExpressionTypeParser
LogicalDirectiveSource

Private Type Aliases

Name
ExactSemanticBindingSequence

Private Enums

Name
ExactSemanticBindingKind

Private Member Functions

Name
captureExactExpressionTypes
void captureExactExpressionTypes(ExactSemanticExpressionBindings* expression);
captureLogicalDirectiveSource
LogicalDirectiveSource captureLogicalDirectiveSource( llvm::StringRef contents, std::size_t offset) const;
captureOpenACCSemanticBindings
void captureOpenACCSemanticBindings( std::pair<clang::FileID, unsigned int> const& pragma_key, clang::SourceLocation pragma_location, std::string const& pragma_text);
captureSemanticExpressionIdentifiers
void captureSemanticExpressionIdentifiers( std::pair<clang::FileID, unsigned int> const& pragma_key, clang::SourceLocation pragma_location, OpenMPExprParseMode parse_mode, std::string const& expression);
delayedInlineFunctionContext
clang::FunctionDecl* delayedInlineFunctionContext(clang::SourceLocation pragma_location) const;
exactCurrentThisType
clang::QualType exactCurrentThisType(clang::FunctionDecl* delayed_function_context) const;
exactSemanticQualifierContext
clang::DeclContext* exactSemanticQualifierContext(clang::NamedDecl* declaration) const;
expandObjectLikeMacroTokens
void expandObjectLikeMacroTokens( std::vector<clang::Token> const& input_tokens, std::vector<clang::Token>* output_tokens, std::set<clang::IdentifierInfo const*>* active_macros, unsigned int depth, unsigned int* delimiter_depth, bool* changed, bool* has_top_level_macro_expansion) const;
expandObjectLikeMacros
std::string expandObjectLikeMacros( std::string const& text, bool* has_top_level_macro_expansion) const;
getIdentifierInfoForToken
clang::IdentifierInfo const* getIdentifierInfoForToken(clang::Token const& token) const;
lexPragmaTokens
void lexPragmaTokens( std::string const& text, std::vector<clang::Token>* tokens) const;
lookupExactSemanticMember
clang::NamedDecl* lookupExactSemanticMember( clang::IdentifierInfo const* identifier, clang::QualType owner_type, bool through_pointer, clang::SourceLocation location, std::string const& spelling, clang::FunctionDecl* delayed_function_context);
parseOpenMPDirectiveKindOrAbort
OpenMPDirectiveKind parseOpenMPDirectiveKindOrAbort(std::string const& pragma_text) const;
requireSingleExactSemanticLookup
clang::NamedDecl* requireSingleExactSemanticLookup( clang::LookupResult& lookup, bool found, std::string const& spelling);
resolveDeferredLexicalValue
clang::NamedDecl* resolveDeferredLexicalValue(ExactSemanticBinding const& binding) const;
resolveDeferredSemanticBindings
void resolveDeferredSemanticBindings(ExactSemanticExpressionBindings* expression);
sourceRangeContainsLocation
bool sourceRangeContainsLocation( clang::SourceRange range, clang::SourceLocation location) const;
stringifyTokens
void stringifyTokens( std::vector<clang::Token> const& tokens, std::string* text) const;
stripCommentsForPragmaParser
std::string stripCommentsForPragmaParser(std::string const& text) const;

Private Static Member Functions

Name
exactSemanticBindingKind
static ExactSemanticBindingKind exactSemanticBindingKind(clang::NamedDecl* declaration);
exactSemanticValueType
static clang::QualType exactSemanticValueType(clang::NamedDecl* declaration);
isAccPragmaText
static bool isAccPragmaText(std::string const& text);
isDeferredLexicalScopeBoundary
static bool isDeferredLexicalScopeBoundary(clang::Stmt const* statement);
isOmpPragmaText
static bool isOmpPragmaText(std::string const& text);
isRoseSemanticPragmaText
static bool isRoseSemanticPragmaText(std::string const& text);

Private Data Members

Name
line_to_pragma
openacc_cxx_semantic_bindings
p_preprocessor
p_sema
p_source_manager
p_structured_openacc_enabled
p_structured_openmp_enabled
variant_boundaries

Private Static Data Members

Name
kMaxExpandedPragmaSize

Created with MrDocs