class OMPDefaultClause
Declaration
class OMPDefaultClause : public OMPClause { /* full declaration omitted */ };
Description
This represents 'default' clause in the '#pragma omp ...' directive. In this example directive '#pragma omp parallel' has simple 'default' clause with kind 'shared'.
Declared at: clang/include/clang/AST/OpenMPClause.h:1149
Inherits from: OMPClause
Member Variables
- private clang::SourceLocation LParenLoc
- Location of '('.
- private llvm::omp::DefaultKind Kind = llvm::omp::OMP_DEFAULT_unknown
- A kind of the 'default' clause.
- private clang::SourceLocation KindKwLoc
- Start location of the kind in source code.
Method Overview
- public OMPDefaultClause(llvm::omp::DefaultKind A, clang::SourceLocation ALoc, clang::SourceLocation StartLoc, clang::SourceLocation LParenLoc, clang::SourceLocation EndLoc)
- public OMPDefaultClause()
- public clang::OMPClause::child_range children()
- public clang::OMPClause::const_child_range children() const
- public static bool classof(const clang::OMPClause * T)
- public llvm::omp::DefaultKind getDefaultKind() const
- public clang::SourceLocation getDefaultKindKwLoc() const
- public clang::SourceLocation getLParenLoc() const
- private void setDefaultKind(llvm::omp::DefaultKind K)
- private void setDefaultKindKwLoc(clang::SourceLocation KLoc)
- public void setLParenLoc(clang::SourceLocation Loc)
- 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
¶OMPDefaultClause(llvm::omp::DefaultKind A,
clang::SourceLocation ALoc,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
OMPDefaultClause(llvm::omp::DefaultKind A,
clang::SourceLocation ALoc,
clang::SourceLocation StartLoc,
clang::SourceLocation LParenLoc,
clang::SourceLocation EndLoc)
Description
Build 'default' clause with argument \a A ('none' or 'shared').
Declared at: clang/include/clang/AST/OpenMPClause.h:1179
Parameters
- llvm::omp::DefaultKind A
- Argument of the clause ('none' or 'shared').
- 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.
¶OMPDefaultClause()
OMPDefaultClause()
Description
Build an empty clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:1186
¶clang::OMPClause::child_range children()
clang::OMPClause::child_range children()
Declared at: clang/include/clang/AST/OpenMPClause.h:1202
¶clang::OMPClause::const_child_range children()
const
clang::OMPClause::const_child_range children()
const
Declared at: clang/include/clang/AST/OpenMPClause.h:1206
¶static bool classof(const clang::OMPClause* T)
static bool classof(const clang::OMPClause* T)
Declared at: clang/include/clang/AST/OpenMPClause.h:1217
Parameters
- const clang::OMPClause* T
¶llvm::omp::DefaultKind getDefaultKind() const
llvm::omp::DefaultKind getDefaultKind() const
Description
Returns kind of the clause.
Declared at: clang/include/clang/AST/OpenMPClause.h:1197
¶clang::SourceLocation getDefaultKindKwLoc() const
clang::SourceLocation getDefaultKindKwLoc() const
Description
Returns location of clause kind.
Declared at: clang/include/clang/AST/OpenMPClause.h:1200
¶clang::SourceLocation getLParenLoc() const
clang::SourceLocation getLParenLoc() const
Description
Returns the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:1194
¶void setDefaultKind(llvm::omp::DefaultKind K)
void setDefaultKind(llvm::omp::DefaultKind K)
Description
Set kind of the clauses.
Declared at: clang/include/clang/AST/OpenMPClause.h:1164
Parameters
- llvm::omp::DefaultKind K
- Argument of clause.
¶void setDefaultKindKwLoc(
clang::SourceLocation KLoc)
void setDefaultKindKwLoc(
clang::SourceLocation KLoc)
Description
Set argument location.
Declared at: clang/include/clang/AST/OpenMPClause.h:1169
Parameters
- clang::SourceLocation KLoc
- Argument location.
¶void setLParenLoc(clang::SourceLocation Loc)
void setLParenLoc(clang::SourceLocation Loc)
Description
Sets the location of '('.
Declared at: clang/include/clang/AST/OpenMPClause.h:1191
Parameters
¶clang::OMPClause::child_range used_children()
clang::OMPClause::child_range used_children()
Declared at: clang/include/clang/AST/OpenMPClause.h:1210
¶clang::OMPClause::const_child_range
used_children() const
clang::OMPClause::const_child_range
used_children() const
Declared at: clang/include/clang/AST/OpenMPClause.h:1213