clang  19.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
clang::OMPOneStmtClause< ClauseKind, Base > Class Template Reference

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPOneStmtClause< ClauseKind, Base >:
Inheritance graph
[legend]

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

 OMPOneStmtClause (Stmt *S, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc)
 
 OMPOneStmtClause ()
 
template<typename T >
TgetStmtAs () const
 Return the associated statement, potentially casted to T. More...
 
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('. More...
 
SourceLocation getLParenLoc () const
 Returns the location of '('. More...
 
child_range children ()
 
const_child_range children () const
 
child_range used_children ()
 
const_child_range used_children () const
 

Static Public Member Functions

static bool classof (const OMPClause *T)
 

Protected Member Functions

void setStmt (Stmt *S)
 

Detailed Description

template<OpenMPClauseKind ClauseKind, class Base>
class clang::OMPOneStmtClause< ClauseKind, Base >

Definition at line 144 of file OpenMPClause.h.

Member Typedef Documentation

◆ child_iterator

template<OpenMPClauseKind ClauseKind, class Base >
using clang::OMPOneStmtClause< ClauseKind, Base >::child_iterator = StmtIterator

Definition at line 171 of file OpenMPClause.h.

◆ child_range

template<OpenMPClauseKind ClauseKind, class Base >
using clang::OMPOneStmtClause< ClauseKind, Base >::child_range = llvm::iterator_range<child_iterator>

Definition at line 173 of file OpenMPClause.h.

◆ const_child_iterator

template<OpenMPClauseKind ClauseKind, class Base >
using clang::OMPOneStmtClause< ClauseKind, Base >::const_child_iterator = ConstStmtIterator

Definition at line 172 of file OpenMPClause.h.

◆ const_child_range

template<OpenMPClauseKind ClauseKind, class Base >
using clang::OMPOneStmtClause< ClauseKind, Base >::const_child_range = llvm::iterator_range<const_child_iterator>

Definition at line 174 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPOneStmtClause() [1/2]

template<OpenMPClauseKind ClauseKind, class Base >
clang::OMPOneStmtClause< ClauseKind, Base >::OMPOneStmtClause ( Stmt S,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc 
)
inline

Definition at line 156 of file OpenMPClause.h.

◆ OMPOneStmtClause() [2/2]

template<OpenMPClauseKind ClauseKind, class Base >
clang::OMPOneStmtClause< ClauseKind, Base >::OMPOneStmtClause ( )
inline

Definition at line 160 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

template<OpenMPClauseKind ClauseKind, class Base >
child_range clang::OMPOneStmtClause< ClauseKind, Base >::children ( )
inline

Definition at line 176 of file OpenMPClause.h.

◆ children() [2/2]

template<OpenMPClauseKind ClauseKind, class Base >
const_child_range clang::OMPOneStmtClause< ClauseKind, Base >::children ( ) const
inline

Definition at line 178 of file OpenMPClause.h.

◆ classof()

template<OpenMPClauseKind ClauseKind, class Base >
static bool clang::OMPOneStmtClause< ClauseKind, Base >::classof ( const OMPClause T)
inlinestatic

Definition at line 188 of file OpenMPClause.h.

References clang::T.

◆ getLParenLoc()

template<OpenMPClauseKind ClauseKind, class Base >
SourceLocation clang::OMPOneStmtClause< ClauseKind, Base >::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 169 of file OpenMPClause.h.

◆ getStmtAs()

template<OpenMPClauseKind ClauseKind, class Base >
template<typename T >
T* clang::OMPOneStmtClause< ClauseKind, Base >::getStmtAs ( ) const
inline

Return the associated statement, potentially casted to T.

Definition at line 163 of file OpenMPClause.h.

◆ setLParenLoc()

template<OpenMPClauseKind ClauseKind, class Base >
void clang::OMPOneStmtClause< ClauseKind, Base >::setLParenLoc ( SourceLocation  Loc)
inline

Sets the location of '('.

Definition at line 166 of file OpenMPClause.h.

References Loc.

◆ setStmt()

template<OpenMPClauseKind ClauseKind, class Base >
void clang::OMPOneStmtClause< ClauseKind, Base >::setStmt ( Stmt S)
inlineprotected

Definition at line 153 of file OpenMPClause.h.

◆ used_children() [1/2]

template<OpenMPClauseKind ClauseKind, class Base >
child_range clang::OMPOneStmtClause< ClauseKind, Base >::used_children ( )
inline

Definition at line 181 of file OpenMPClause.h.

◆ used_children() [2/2]

template<OpenMPClauseKind ClauseKind, class Base >
const_child_range clang::OMPOneStmtClause< ClauseKind, Base >::used_children ( ) const
inline

Definition at line 184 of file OpenMPClause.h.


The documentation for this class was generated from the following file: