clang  8.0.0svn
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
clang::OMPClause Class Reference

This is a basic class for representing single OpenMP clause. More...

#include "clang/AST/OpenMPClause.h"

Inheritance diagram for clang::OMPClause:
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

 LLVM_ATTRIBUTE_DEPRECATED (SourceLocation getLocStart() const LLVM_READONLY, "Use getBeginLoc instead")
 Returns the starting location of the clause. More...
 
SourceLocation getBeginLoc () const
 
 LLVM_ATTRIBUTE_DEPRECATED (SourceLocation getLocEnd() const LLVM_READONLY, "Use getEndLoc instead")
 Returns the ending location of the clause. More...
 
SourceLocation getEndLoc () const
 
void setLocStart (SourceLocation Loc)
 Sets the starting location of the clause. More...
 
void setLocEnd (SourceLocation Loc)
 Sets the ending location of the clause. More...
 
OpenMPClauseKind getClauseKind () const
 Returns kind of OpenMP clause (private, shared, reduction, etc.). More...
 
bool isImplicit () const
 
child_range children ()
 
const_child_range children () const
 

Static Public Member Functions

static bool classof (const OMPClause *)
 

Protected Member Functions

 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
 

Detailed Description

This is a basic class for representing single OpenMP clause.

Definition at line 51 of file OpenMPClause.h.

Member Typedef Documentation

◆ child_iterator

Definition at line 91 of file OpenMPClause.h.

◆ child_range

using clang::OMPClause::child_range = llvm::iterator_range<child_iterator>

Definition at line 93 of file OpenMPClause.h.

◆ const_child_iterator

Definition at line 92 of file OpenMPClause.h.

◆ const_child_range

Definition at line 94 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ OMPClause()

clang::OMPClause::OMPClause ( OpenMPClauseKind  K,
SourceLocation  StartLoc,
SourceLocation  EndLoc 
)
inlineprotected

Definition at line 62 of file OpenMPClause.h.

Member Function Documentation

◆ children() [1/2]

OMPClause::child_range OMPClause::children ( )

Definition at line 26 of file OpenMPClause.cpp.

References getClauseKind().

Referenced by clang::Sema::ActOnOpenMPRegionEnd(), and children().

◆ children() [2/2]

const_child_range clang::OMPClause::children ( ) const
inline

Definition at line 97 of file OpenMPClause.h.

References children().

◆ classof()

static bool clang::OMPClause::classof ( const OMPClause )
inlinestatic

Definition at line 102 of file OpenMPClause.h.

◆ getBeginLoc()

SourceLocation clang::OMPClause::getBeginLoc ( ) const
inline

◆ getClauseKind()

OpenMPClauseKind clang::OMPClause::getClauseKind ( ) const
inline

◆ getEndLoc()

SourceLocation clang::OMPClause::getEndLoc ( ) const
inline

◆ isImplicit()

bool clang::OMPClause::isImplicit ( ) const
inline

Definition at line 89 of file OpenMPClause.h.

References clang::SourceLocation::isInvalid().

◆ LLVM_ATTRIBUTE_DEPRECATED() [1/2]

clang::OMPClause::LLVM_ATTRIBUTE_DEPRECATED ( SourceLocation getLocStart() const  LLVM_READONLY,
"Use getBeginLoc instead"   
)
inline

Returns the starting location of the clause.

Definition at line 67 of file OpenMPClause.h.

References getBeginLoc().

◆ LLVM_ATTRIBUTE_DEPRECATED() [2/2]

clang::OMPClause::LLVM_ATTRIBUTE_DEPRECATED ( SourceLocation getLocEnd() const  LLVM_READONLY,
"Use getEndLoc instead"   
)
inline

Returns the ending location of the clause.

Definition at line 74 of file OpenMPClause.h.

References getEndLoc().

◆ setLocEnd()

void clang::OMPClause::setLocEnd ( SourceLocation  Loc)
inline

Sets the ending location of the clause.

Definition at line 84 of file OpenMPClause.h.

◆ setLocStart()

void clang::OMPClause::setLocStart ( SourceLocation  Loc)
inline

Sets the starting location of the clause.

Definition at line 81 of file OpenMPClause.h.


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