class OMPDeclareMapperDecl
Declaration
class OMPDeclareMapperDecl : public OMPDeclarativeDirective,
public DeclContext { /* full declaration omitted */ };
Description
This represents '#pragma omp declare mapper ...' directive. Map clauses are allowed to use with this directive. The following example declares a user defined mapper for the type 'struct vec'. This example instructs the fields 'len' and 'data' should be mapped when mapping instances of 'struct vec'.
Declared at: clang/include/clang/AST/DeclOpenMP.h:286
Inherits from: OMPDeclarativeDirective, DeclContext
Member Variables
- private clang::Expr* MapperVarRef = nullptr
- Mapper variable, which is 'v' in the example above
- private clang::DeclarationName VarName
- Name of the mapper variable
- private clang::LazyDeclPtr PrevDeclInScope
Inherited from DeclContext:
- protected
- protected FirstDecl = nullptr
- protected LastDecl = nullptr
Method Overview
- public static clang::OMPDeclareMapperDecl * Create(clang::ASTContext & C, clang::DeclContext * DC, clang::SourceLocation L, clang::DeclarationName Name, clang::QualType T, clang::DeclarationName VarName, ArrayRef<clang::OMPClause *> Clauses, clang::OMPDeclareMapperDecl * PrevDeclInScope)
- public static clang::OMPDeclareMapperDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID, unsigned int N)
- private OMPDeclareMapperDecl(clang::DeclContext * DC, clang::SourceLocation L, clang::DeclarationName Name, clang::QualType Ty, clang::DeclarationName VarName, clang::OMPDeclareMapperDecl * PrevDeclInScope)
- private void anchor()
- public static clang::OMPDeclareMapperDecl * castFromDeclContext(const clang::DeclContext * DC)
- public static clang::DeclContext * castToDeclContext(const clang::OMPDeclareMapperDecl * D)
- public static bool classof(const clang::Decl * D)
- public static bool classofKind(clang::Decl::Kind K)
- public clang::OMPDeclareMapperDecl::clauselist_iterator clauselist_begin()
- public clang::OMPDeclareMapperDecl::clauselist_const_iterator clauselist_begin() const
- public bool clauselist_empty() const
- public clang::OMPDeclareMapperDecl::clauselist_iterator clauselist_end()
- public clang::OMPDeclareMapperDecl::clauselist_const_iterator clauselist_end() const
- public unsigned int clauselist_size() const
- public clang::OMPDeclareMapperDecl::clauselist_range clauselists()
- public clang::OMPDeclareMapperDecl::clauselist_const_range clauselists() const
- public const clang::Expr * getMapperVarRef() const
- public clang::Expr * getMapperVarRef()
- public clang::OMPDeclareMapperDecl * getPrevDeclInScope()
- public const clang::OMPDeclareMapperDecl * getPrevDeclInScope() const
- public clang::DeclarationName getVarName()
- public void setMapperVarRef(clang::Expr * MapperVarRefE)
- private void setPrevDeclInScope(clang::OMPDeclareMapperDecl * Prev)
Inherited from DeclContext:
- protected BuildDeclChain
- public Encloses
- public Equals
- public InEnclosingNamespaceSetOf
- public addDecl
- public addDeclInternal
- public addHiddenDecl
- public buildLookup
- public classof
- public classof
- public collectAllContexts
- public containsDecl
- public containsDeclAndLoad
- public ddiags
- public decls
- public decls_begin
- public decls_empty
- public decls_end
- public dumpDeclContext
- public dumpLookups
- public dumpLookups
- public getDeclKind
- public getDeclKindName
- public getEnclosingNamespaceContext
- public getEnclosingNamespaceContext
- public getExternCContext
- public getInnermostBlockDecl
- public getLexicalParent
- public getLexicalParent
- public getLookupParent
- public getLookupParent
- public getLookupPtr
- public getNonClosureAncestor
- public getNonClosureAncestor
- public getNonTransparentContext
- public getNonTransparentContext
- public getOuterLexicalRecordContext
- public getOuterLexicalRecordContext
- public getParent
- public getParent
- public getParentASTContext
- public getPrimaryContext
- public getPrimaryContext
- public getRedeclContext
- public getRedeclContext
- public hasExternalLexicalStorage
- public hasExternalVisibleStorage
- public isClosure
- public isDeclInLexicalTraversal
- public isDependentContext
- public isExternCContext
- public isExternCXXContext
- public isFileContext
- public isFunctionOrMethod
- public isInlineNamespace
- public isLookupContext
- public isNamespace
- public isObjCContainer
- public isRecord
- public isStdNamespace
- public isTranslationUnit
- public isTransparentContext
- public localUncachedLookup
- public lookup
- public lookups
- public lookups_begin
- public lookups_end
- public makeDeclVisibleInContext
- public noload_decls
- public noload_decls_begin
- public noload_decls_end
- public noload_lookup
- public noload_lookups
- public noload_lookups_begin
- public noload_lookups_end
- public removeDecl
- public setHasExternalLexicalStorage
- public setHasExternalVisibleStorage
- public setMustBuildLookupTable
- public setUseQualifiedLookup
- public shouldUseQualifiedLookup
- public using_directives
Methods
¶static clang::OMPDeclareMapperDecl* Create(
clang::ASTContext& C,
clang::DeclContext* DC,
clang::SourceLocation L,
clang::DeclarationName Name,
clang::QualType T,
clang::DeclarationName VarName,
ArrayRef<clang::OMPClause*> Clauses,
clang::OMPDeclareMapperDecl* PrevDeclInScope)
static clang::OMPDeclareMapperDecl* Create(
clang::ASTContext& C,
clang::DeclContext* DC,
clang::SourceLocation L,
clang::DeclarationName Name,
clang::QualType T,
clang::DeclarationName VarName,
ArrayRef<clang::OMPClause*> Clauses,
clang::OMPDeclareMapperDecl* PrevDeclInScope)
Description
Creates declare mapper node.
Declared at: clang/include/clang/AST/DeclOpenMP.h:315
Parameters
- clang::ASTContext& C
- clang::DeclContext* DC
- clang::SourceLocation L
- clang::DeclarationName Name
- clang::QualType T
- clang::DeclarationName VarName
- ArrayRef<clang::OMPClause*> Clauses
- clang::OMPDeclareMapperDecl* PrevDeclInScope
¶static clang::OMPDeclareMapperDecl*
CreateDeserialized(clang::ASTContext& C,
unsigned int ID,
unsigned int N)
static clang::OMPDeclareMapperDecl*
CreateDeserialized(clang::ASTContext& C,
unsigned int ID,
unsigned int N)
Description
Creates deserialized declare mapper node.
Declared at: clang/include/clang/AST/DeclOpenMP.h:321
Parameters
- clang::ASTContext& C
- unsigned int ID
- unsigned int N
¶OMPDeclareMapperDecl(
clang::DeclContext* DC,
clang::SourceLocation L,
clang::DeclarationName Name,
clang::QualType Ty,
clang::DeclarationName VarName,
clang::OMPDeclareMapperDecl* PrevDeclInScope)
OMPDeclareMapperDecl(
clang::DeclContext* DC,
clang::SourceLocation L,
clang::DeclarationName Name,
clang::QualType Ty,
clang::DeclarationName VarName,
clang::OMPDeclareMapperDecl* PrevDeclInScope)
Declared at: clang/include/clang/AST/DeclOpenMP.h:302
Parameters
- clang::DeclContext* DC
- clang::SourceLocation L
- clang::DeclarationName Name
- clang::QualType Ty
- clang::DeclarationName VarName
- clang::OMPDeclareMapperDecl* PrevDeclInScope
¶void anchor()
void anchor()
Declared at: clang/include/clang/AST/DeclOpenMP.h:300
¶static clang::OMPDeclareMapperDecl*
castFromDeclContext(const clang::DeclContext* DC)
static clang::OMPDeclareMapperDecl*
castFromDeclContext(const clang::DeclContext* DC)
Declared at: clang/include/clang/AST/DeclOpenMP.h:371
Parameters
- const clang::DeclContext* DC
¶static clang::DeclContext* castToDeclContext(
const clang::OMPDeclareMapperDecl* D)
static clang::DeclContext* castToDeclContext(
const clang::OMPDeclareMapperDecl* D)
Declared at: clang/include/clang/AST/DeclOpenMP.h:368
Parameters
- const clang::OMPDeclareMapperDecl* D
¶static bool classof(const clang::Decl* D)
static bool classof(const clang::Decl* D)
Declared at: clang/include/clang/AST/DeclOpenMP.h:366
Parameters
- const clang::Decl* D
¶static bool classofKind(clang::Decl::Kind K)
static bool classofKind(clang::Decl::Kind K)
Declared at: clang/include/clang/AST/DeclOpenMP.h:367
Parameters
- clang::Decl::Kind K
¶clang::OMPDeclareMapperDecl::clauselist_iterator
clauselist_begin()
clang::OMPDeclareMapperDecl::clauselist_iterator
clauselist_begin()
Declared at: clang/include/clang/AST/DeclOpenMP.h:339
¶clang::OMPDeclareMapperDecl::
clauselist_const_iterator
clauselist_begin() const
clang::OMPDeclareMapperDecl::
clauselist_const_iterator
clauselist_begin() const
Declared at: clang/include/clang/AST/DeclOpenMP.h:341
¶bool clauselist_empty() const
bool clauselist_empty() const
Declared at: clang/include/clang/AST/DeclOpenMP.h:331
¶clang::OMPDeclareMapperDecl::clauselist_iterator
clauselist_end()
clang::OMPDeclareMapperDecl::clauselist_iterator
clauselist_end()
Declared at: clang/include/clang/AST/DeclOpenMP.h:340
¶clang::OMPDeclareMapperDecl::
clauselist_const_iterator
clauselist_end() const
clang::OMPDeclareMapperDecl::
clauselist_const_iterator
clauselist_end() const
Declared at: clang/include/clang/AST/DeclOpenMP.h:344
¶unsigned int clauselist_size() const
unsigned int clauselist_size() const
Declared at: clang/include/clang/AST/DeclOpenMP.h:330
¶clang::OMPDeclareMapperDecl::clauselist_range
clauselists()
clang::OMPDeclareMapperDecl::clauselist_range
clauselists()
Declared at: clang/include/clang/AST/DeclOpenMP.h:333
¶clang::OMPDeclareMapperDecl::
clauselist_const_range
clauselists() const
clang::OMPDeclareMapperDecl::
clauselist_const_range
clauselists() const
Declared at: clang/include/clang/AST/DeclOpenMP.h:336
¶const clang::Expr* getMapperVarRef() const
const clang::Expr* getMapperVarRef() const
Declared at: clang/include/clang/AST/DeclOpenMP.h:350
¶clang::Expr* getMapperVarRef()
clang::Expr* getMapperVarRef()
Description
Get the variable declared in the mapper
Declared at: clang/include/clang/AST/DeclOpenMP.h:349
¶clang::OMPDeclareMapperDecl* getPrevDeclInScope()
clang::OMPDeclareMapperDecl* getPrevDeclInScope()
Description
Get reference to previous declare mapper construct in the same scope with the same name.
Declared at: clang/include/clang/AST/DeclOpenMP.h:363
¶const clang::OMPDeclareMapperDecl*
getPrevDeclInScope() const
const clang::OMPDeclareMapperDecl*
getPrevDeclInScope() const
Declared at: clang/include/clang/AST/DeclOpenMP.h:364
¶clang::DeclarationName getVarName()
clang::DeclarationName getVarName()
Description
Get the name of the variable declared in the mapper
Declared at: clang/include/clang/AST/DeclOpenMP.h:359
¶void setMapperVarRef(clang::Expr* MapperVarRefE)
void setMapperVarRef(clang::Expr* MapperVarRefE)
Description
Set the variable declared in the mapper
Declared at: clang/include/clang/AST/DeclOpenMP.h:354
Parameters
- clang::Expr* MapperVarRefE
¶void setPrevDeclInScope(
clang::OMPDeclareMapperDecl* Prev)
void setPrevDeclInScope(
clang::OMPDeclareMapperDecl* Prev)
Declared at: clang/include/clang/AST/DeclOpenMP.h:309