clang 24.0.0git
OMPSingleDirective Class Reference

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

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPSingleDirective:
[legend]

Static Public Member Functions

static OMPSingleDirective * Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, ArrayRef< OMPClause * > Clauses, Stmt *AssociatedStmt)
 Creates directive with a list of Clauses.
static OMPSingleDirective * CreateEmpty (const ASTContext &C, unsigned NumClauses, EmptyShell)
 Creates an empty directive with the place for NumClauses clauses.
static bool classof (const Stmt *T)

Friends

class ASTStmtReader
class OMPExecutableDirective

Detailed Description

This represents '#pragma omp single' directive.

#pragma omp single private(a,b) copyprivate(c,d)

In this example directive '#pragma omp single' has clauses 'private' with the variables 'a' and 'b' and 'copyprivate' with variables 'c' and 'd'.

Definition at line 2075 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

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

Definition at line 2115 of file StmtOpenMP.h.

◆ Create()

OMPSingleDirective * OMPSingleDirective::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation EndLoc,
ArrayRef< OMPClause * > Clauses,
Stmt * AssociatedStmt )
static

Creates directive with a list of Clauses.

Parameters
CAST context.
StartLocStarting location of the directive kind.
EndLocEnding Location of the directive.
ClausesList of clauses.
AssociatedStmtStatement, associated with the directive.

Definition at line 787 of file StmtOpenMP.cpp.

References clang::C.

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

◆ CreateEmpty()

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

Creates an empty directive with the place for NumClauses clauses.

Parameters
CAST context.
NumClausesNumber of clauses.

Definition at line 797 of file StmtOpenMP.cpp.

References clang::C.

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 2076 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 2077 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


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