clang 24.0.0git
OMPSectionDirective Class Reference

This represents '#pragma omp section' directive. More...

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPSectionDirective:
[legend]

Public Member Functions

void setHasCancel (bool Has)
 Set cancel state.
bool hasCancel () const
 Return true if current directive has inner cancel directive.

Static Public Member Functions

static OMPSectionDirectiveCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, Stmt *AssociatedStmt, bool HasCancel)
 Creates directive.
static OMPSectionDirectiveCreateEmpty (const ASTContext &C, EmptyShell)
 Creates an empty directive.
static bool classof (const Stmt *T)

Friends

class ASTStmtReader
class OMPExecutableDirective

Detailed Description

This represents '#pragma omp section' directive.

#pragma omp section

Definition at line 1944 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

bool OMPSectionDirective::classof ( const Stmt * T)
inlinestatic

Definition at line 1993 of file StmtOpenMP.h.

◆ Create()

OMPSectionDirective * OMPSectionDirective::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation EndLoc,
Stmt * AssociatedStmt,
bool HasCancel )
static

Creates directive.

Parameters
CAST context.
StartLocStarting location of the directive kind.
EndLocEnding Location of the directive.
AssociatedStmtStatement, associated with the directive.
HasCanceltrue if current directive has inner directive.

Definition at line 713 of file StmtOpenMP.cpp.

References clang::C, and setHasCancel().

Referenced by clang::SemaOpenMP::ActOnOpenMPSectionDirective().

◆ CreateEmpty()

OMPSectionDirective * OMPSectionDirective::CreateEmpty ( const ASTContext & C,
EmptyShell  )
static

Creates an empty directive.

Parameters
CAST context.

Definition at line 725 of file StmtOpenMP.cpp.

References clang::C.

◆ hasCancel()

bool OMPSectionDirective::hasCancel ( ) const
inline

Return true if current directive has inner cancel directive.

Definition at line 1991 of file StmtOpenMP.h.

◆ setHasCancel()

void OMPSectionDirective::setHasCancel ( bool Has)
inline

Set cancel state.

Definition at line 1988 of file StmtOpenMP.h.

Referenced by Create().

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 1945 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 1946 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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