|
clang 23.0.0git
|
This is a basic class for representing single OpenMP clause. More...
#include "clang/AST/OpenMPClause.h"
Public Types | |
| using | child_iterator = StmtIterator |
| using | const_child_iterator = ConstStmtIterator |
| using | child_range = llvm::iterator_range<child_iterator> |
| using | const_child_range = llvm::iterator_range<const_child_iterator> |
Public Member Functions | |
| SourceLocation | getBeginLoc () const |
| Returns the starting location of the clause. | |
| SourceLocation | getEndLoc () const |
| Returns the ending location of the clause. | |
| void | setLocStart (SourceLocation Loc) |
| Sets the starting location of the clause. | |
| void | setLocEnd (SourceLocation Loc) |
| Sets the ending location of the clause. | |
| OpenMPClauseKind | getClauseKind () const |
| Returns kind of OpenMP clause (private, shared, reduction, etc.). | |
| bool | isImplicit () const |
| child_range | children () |
| const_child_range | children () const |
| child_range | used_children () |
| Get the iterator range for the expressions used in the clauses. | |
| const_child_range | used_children () const |
Static Public Member Functions | |
| static bool | classof (const OMPClause *) |
Protected Member Functions | |
| OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc) | |
This is a basic class for representing single OpenMP clause.
Definition at line 56 of file OpenMPClause.h.
Definition at line 88 of file OpenMPClause.h.
| using clang::OMPClause::child_range = llvm::iterator_range<child_iterator> |
Definition at line 90 of file OpenMPClause.h.
Definition at line 89 of file OpenMPClause.h.
| using clang::OMPClause::const_child_range = llvm::iterator_range<const_child_iterator> |
Definition at line 91 of file OpenMPClause.h.
|
inlineprotected |
Definition at line 67 of file OpenMPClause.h.
Referenced by children(), classof(), clang::OMPCountsClause::classof(), clang::OMPDefaultClause::classof(), clang::OMPIfClause::classof(), clang::OMPLoopRangeClause::classof(), clang::OMPNoChildClause< ClauseKind >::classof(), clang::OMPPartialClause::classof(), clang::OMPPermutationClause::classof(), clang::OMPSizesClause::classof(), clang::OMPThreadsetClause::classof(), clang::OMPCountsClause::llvm::TrailingObjects< OMPCountsClause, Expr * >, clang::OMPSizesClause::llvm::TrailingObjects< OMPSizesClause, Expr * >, clang::OMPPartialClause::OMPClauseReader, clang::OMPDefaultClause::OMPDefaultClause(), clang::OMPDefaultClause::OMPDefaultClause(), clang::OMPDirectiveListClause< T >::OMPDirectiveListClause(), clang::OMPIfClause::OMPIfClause(), clang::OMPIfClause::OMPIfClause(), clang::OMPNoChildClause< ClauseKind >::OMPNoChildClause(), clang::OMPNoChildClause< ClauseKind >::OMPNoChildClause(), clang::OMPThreadsetClause::OMPThreadsetClause(), clang::OMPThreadsetClause::OMPThreadsetClause(), clang::OMPVarListClause< T >::OMPVarListClause(), and used_children().
| OMPClause::child_range OMPClause::children | ( | ) |
Definition at line 34 of file OpenMPClause.cpp.
References children(), and getClauseKind().
Referenced by children(), children(), and used_children().
|
inline |
Definition at line 94 of file OpenMPClause.h.
References children(), and OMPClause().
Definition at line 106 of file OpenMPClause.h.
References OMPClause().
|
inline |
Returns the starting location of the clause.
Definition at line 72 of file OpenMPClause.h.
Referenced by clang::SemaOpenMP::ActOnOpenMPFlushDirective(), clang::SemaOpenMP::ActOnOpenMPOrderedDirective(), clang::SemaOpenMP::ActOnOpenMPSingleDirective(), clang::SemaOpenMP::ActOnOpenMPTargetTeamsDirective(), clang::SemaOpenMP::ActOnOpenMPUnrollDirective(), checkMutuallyExclusiveClauses(), and checkReductionClauseWithNogroup().
|
inline |
Returns kind of OpenMP clause (private, shared, reduction, etc.).
Definition at line 84 of file OpenMPClause.h.
Referenced by clang::SemaOpenMP::ActOnOpenMPFlushDirective(), checkMutuallyExclusiveClauses(), children(), clang::TreeTransform< Derived >::TransformOMPClause(), and used_children().
|
inline |
Returns the ending location of the clause.
Definition at line 75 of file OpenMPClause.h.
Referenced by checkReductionClauseWithNogroup().
|
inline |
Definition at line 86 of file OpenMPClause.h.
|
inline |
Sets the ending location of the clause.
Definition at line 81 of file OpenMPClause.h.
|
inline |
Sets the starting location of the clause.
Definition at line 78 of file OpenMPClause.h.
| OMPClause::child_range OMPClause::used_children | ( | ) |
Get the iterator range for the expressions used in the clauses.
Used expressions include only the children that must be evaluated at the runtime before entering the construct.
Definition at line 47 of file OpenMPClause.cpp.
References getClauseKind().
|
inline |
Definition at line 102 of file OpenMPClause.h.
References children(), and OMPClause().