class OMPProcBindClause
Declaration
class OMPProcBindClause : public OMPClause { /* full declaration omitted */ };
Description
This represents 'proc_bind' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp parallel' has simple 'proc_bind' clause with kind 'master'.
Declared at: clang/include/clang/AST/OpenMPClause.h:1230
Inherits from: OMPClause
Member Variables
- private clang::SourceLocation LParenLoc
- Location of '('.
- private llvm::omp::ProcBindKind Kind = llvm::omp::OMP_PROC_BIND_unknown
- A kind of the 'proc_bind' clause.
- private clang::SourceLocation KindKwLoc
- Start location of the kind in source code.
Method Overview
- public OMPProcBindClause(llvm::omp::ProcBindKind A, clang::SourceLocation ALoc, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
- public OMPProcBindClause()
- public clang::OMPClause::child_range children()
- public clang::OMPClause::const_child_range children() const
- public static bool classof(const clang::OMPClause * T)
- public clang::SourceLocation getLParenLoc() const
- public llvm::omp::ProcBindKind getProcBindKind() const
- public clang::SourceLocation getProcBindKindKwLoc() const
- public void setLParenLoc(clang::SourceLocation Loc)
- private void setProcBindKind(llvm::omp::ProcBindKind K)
- private void setProcBindKindKwLoc(clang::SourceLocation KLoc)
- public clang::OMPClause::child_range used_children()
- public clang::OMPClause::const_child_range used_children() const
Inherited from OMPClause:
- public children
- public children
- public classof
- public getBeginLoc
- public getClauseKind
- public getEndLoc
- public isImplicit
- public setLocEnd
- public setLocStart
- public used_children
- public used_children
Methods
¶OMPProcBindClause(llvm::omp::ProcBindKind A,
clang::SourceLocation ALoc,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
OMPProcBindClause(llvm::omp::ProcBindKind A,
clang::SourceLocation ALoc,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
Description
Build 'proc_bind' clause with argument \a A ('master', 'close' or 'spread').
Declared at: clang/include/clang/AST/OpenMPClause.h:1261
Parameters
- llvm::omp::ProcBindKind A
- Argument of the clause ('master', 'close' or 'spread').
- clang::SourceLocation ALoc
- Starting location of the argument.
- clang::SourceLocation StartLoc
- Starting location of the clause.
- clang::SourceLocation LParenLoc
- Location of '('.
- clang::SourceLocation EndLoc
- Ending location of the clause.
¶OMPProcBindClause()
OMPProcBindClause()
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:1268
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:1284
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:1288
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:1299
Parameters
- const clang::OMPClause* T
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Description
Returns the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:1276
¶llvm::omp::ProcBindKind getProcBindKind() const
llvm::omp::ProcBindKind getProcBindKind() const
Description
Returns kind of the clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:1279
¶clang::SourceLocation getProcBindKindKwLoc() const
clang::SourceLocation getProcBindKindKwLoc() const
Description
Returns location of clause kind.
Declared at: clang/include/clang/AST/OpenMPClause.h:1282
¶void setLParenLoc(clang::SourceLocation Loc)
void setLParenLoc(clang::SourceLocation Loc)
Description
Sets the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:1273
Parameters
¶void setProcBindKind(llvm::omp::ProcBindKind K)
void setProcBindKind(llvm::omp::ProcBindKind K)
Description
Set kind of the clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:1245
Parameters
- llvm::omp::ProcBindKind K
- Kind of clause.
¶void setProcBindKindKwLoc(
clang::SourceLocation KLoc)
void setProcBindKindKwLoc(
clang::SourceLocation KLoc)
Description
Set clause kind location.
Declared at: clang/include/clang/AST/OpenMPClause.h:1250
Parameters
- clang::SourceLocation KLoc
- Kind location.
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:1292
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:1295