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 |
|---|
RoseOpenMPPragmaCallbackRoseOpenMPPragmaCallback( clang::SourceManager& SM, clang::Preprocessor& PP, bool structured_openmp_enabled, bool structured_openacc_enabled); [constructor] |
EndOfMainFilevirtual void EndOfMainFile() override; [virtual] |
PragmaDirectivevirtual void PragmaDirective( clang::SourceLocation Loc, clang::PragmaIntroducerKind Introducer) override; [virtual] |
getPragmaMapstd::map<std::pair<clang::FileID, unsigned int>, CapturedPragmaInfo> const& getPragmaMap() const; |
getStructuredOpenMPIdentifierSpellingsstd::set<std::string> getStructuredOpenMPIdentifierSpellings() const; |
getVariantBoundariesstd::vector<VariantBoundary> const& getVariantBoundaries() const; |
hasRoseSemanticPragmaInRangebool hasRoseSemanticPragmaInRange(clang::SourceRange range) const; |
isStructuredOpenACCPragmaAtLinebool isStructuredOpenACCPragmaAtLine( clang::FileID file_id, unsigned int line) const; |
isStructuredOpenMPPragmaAtLinebool isStructuredOpenMPPragmaAtLine( clang::FileID file_id, unsigned int line) const; |
materializeOpenACCCxxExactSemanticBindingsAtLineExactSemanticBindingSequence const* materializeOpenACCCxxExactSemanticBindingsAtLine( clang::FileID file_id, unsigned int line); |
requireStructuredOpenMPDirectiveKindAtLineOpenMPDirectiveKind requireStructuredOpenMPDirectiveKindAtLine( clang::FileID file_id, unsigned int line) const; |
setSemavoid setSema(clang::Sema* sema); |
Static Member Functions¶
| Name |
|---|
isWhitespacestatic bool isWhitespace(char c); |
skipWhitespacestatic 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 |
|---|
captureExactExpressionTypesvoid captureExactExpressionTypes(ExactSemanticExpressionBindings* expression); |
captureLogicalDirectiveSourceLogicalDirectiveSource captureLogicalDirectiveSource( llvm::StringRef contents, std::size_t offset) const; |
captureOpenACCSemanticBindingsvoid captureOpenACCSemanticBindings( std::pair<clang::FileID, unsigned int> const& pragma_key, clang::SourceLocation pragma_location, std::string const& pragma_text); |
captureSemanticExpressionIdentifiersvoid captureSemanticExpressionIdentifiers( std::pair<clang::FileID, unsigned int> const& pragma_key, clang::SourceLocation pragma_location, OpenMPExprParseMode parse_mode, std::string const& expression); |
delayedInlineFunctionContextclang::FunctionDecl* delayedInlineFunctionContext(clang::SourceLocation pragma_location) const; |
exactCurrentThisTypeclang::QualType exactCurrentThisType(clang::FunctionDecl* delayed_function_context) const; |
exactSemanticQualifierContextclang::DeclContext* exactSemanticQualifierContext(clang::NamedDecl* declaration) const; |
expandObjectLikeMacroTokensvoid 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; |
expandObjectLikeMacrosstd::string expandObjectLikeMacros( std::string const& text, bool* has_top_level_macro_expansion) const; |
getIdentifierInfoForTokenclang::IdentifierInfo const* getIdentifierInfoForToken(clang::Token const& token) const; |
lexPragmaTokensvoid lexPragmaTokens( std::string const& text, std::vector<clang::Token>* tokens) const; |
lookupExactSemanticMemberclang::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); |
parseOpenMPDirectiveKindOrAbortOpenMPDirectiveKind parseOpenMPDirectiveKindOrAbort(std::string const& pragma_text) const; |
requireSingleExactSemanticLookupclang::NamedDecl* requireSingleExactSemanticLookup( clang::LookupResult& lookup, bool found, std::string const& spelling); |
resolveDeferredLexicalValueclang::NamedDecl* resolveDeferredLexicalValue(ExactSemanticBinding const& binding) const; |
resolveDeferredSemanticBindingsvoid resolveDeferredSemanticBindings(ExactSemanticExpressionBindings* expression); |
sourceRangeContainsLocationbool sourceRangeContainsLocation( clang::SourceRange range, clang::SourceLocation location) const; |
stringifyTokensvoid stringifyTokens( std::vector<clang::Token> const& tokens, std::string* text) const; |
stripCommentsForPragmaParserstd::string stripCommentsForPragmaParser(std::string const& text) const; |
Private Static Member Functions¶
| Name |
|---|
exactSemanticBindingKindstatic ExactSemanticBindingKind exactSemanticBindingKind(clang::NamedDecl* declaration); |
exactSemanticValueTypestatic clang::QualType exactSemanticValueType(clang::NamedDecl* declaration); |
isAccPragmaTextstatic bool isAccPragmaText(std::string const& text); |
isDeferredLexicalScopeBoundarystatic bool isDeferredLexicalScopeBoundary(clang::Stmt const* statement); |
isOmpPragmaTextstatic bool isOmpPragmaText(std::string const& text); |
isRoseSemanticPragmaTextstatic 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