clang 22.0.0git
OMPCancelDirective Class Reference

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

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPCancelDirective:
[legend]

Public Member Functions

OpenMPDirectiveKind getCancelRegion () const
 Get cancellation region for the current cancellation point.

Static Public Member Functions

static OMPCancelDirectiveCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, ArrayRef< OMPClause * > Clauses, OpenMPDirectiveKind CancelRegion)
 Creates directive.
static OMPCancelDirectiveCreateEmpty (const ASTContext &C, unsigned NumClauses, EmptyShell)
 Creates an empty directive.
static bool classof (const Stmt *T)

Friends

class ASTStmtReader
class OMPExecutableDirective

Detailed Description

This represents '#pragma omp cancel' directive.

#pragma omp cancel for

In this example a cancel is created for innermost 'for' region.

Definition at line 3655 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

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

Definition at line 3701 of file StmtOpenMP.h.

◆ Create()

OMPCancelDirective * OMPCancelDirective::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation EndLoc,
ArrayRef< OMPClause * > Clauses,
OpenMPDirectiveKind CancelRegion )
static

Creates directive.

Parameters
CAST context.
StartLocStarting location of the directive kind.
EndLocEnding Location of the directive.
ClausesList of clauses.

Definition at line 914 of file StmtOpenMP.cpp.

References clang::C.

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

◆ CreateEmpty()

OMPCancelDirective * OMPCancelDirective::CreateEmpty ( const ASTContext & C,
unsigned NumClauses,
EmptyShell  )
static

Creates an empty directive.

Parameters
CAST context.
NumClausesNumber of clauses.

Definition at line 924 of file StmtOpenMP.cpp.

References clang::C.

◆ getCancelRegion()

OpenMPDirectiveKind OMPCancelDirective::getCancelRegion ( ) const
inline

Get cancellation region for the current cancellation point.

Definition at line 3699 of file StmtOpenMP.h.

Referenced by clang::CodeGen::CodeGenFunction::EmitOMPCancelDirective().

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 3656 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 3657 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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