clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::OMPCriticalDirective Class Reference

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

#include <StmtOpenMP.h>

Inheritance diagram for clang::OMPCriticalDirective:
Inheritance graph
[legend]
Collaboration diagram for clang::OMPCriticalDirective:
Collaboration graph
[legend]

List of all members.

Public Member Functions

DeclarationNameInfo getDirectiveName () const
 Return name of the directive.

Static Public Member Functions

static OMPCriticalDirectiveCreate (const ASTContext &C, const DeclarationNameInfo &Name, SourceLocation StartLoc, SourceLocation EndLoc, Stmt *AssociatedStmt)
 Creates directive.
static OMPCriticalDirectiveCreateEmpty (const ASTContext &C, EmptyShell)
 Creates an empty directive.
static bool classof (const Stmt *T)

Friends

class ASTStmtReader

Detailed Description

This represents '#pragma omp critical' directive.

 #pragma omp critical

Definition at line 853 of file StmtOpenMP.h.


Member Function Documentation

static bool clang::OMPCriticalDirective::classof ( const Stmt T) [inline, static]

Reimplemented from clang::OMPExecutableDirective.

Definition at line 905 of file StmtOpenMP.h.

References clang::Stmt::getStmtClass().

OMPCriticalDirective * OMPCriticalDirective::Create ( const ASTContext C,
const DeclarationNameInfo Name,
SourceLocation  StartLoc,
SourceLocation  EndLoc,
Stmt AssociatedStmt 
) [static]

Creates directive.

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

Definition at line 1695 of file Stmt.cpp.

References clang::ASTContext::Allocate(), and clang::OMPExecutableDirective::setAssociatedStmt().

Referenced by clang::Sema::ActOnOpenMPCriticalDirective().

Creates an empty directive.

Parameters:
CAST context.

Definition at line 1707 of file Stmt.cpp.

References clang::ASTContext::Allocate().

Return name of the directive.

Definition at line 903 of file StmtOpenMP.h.

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


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::OMPExecutableDirective.

Definition at line 854 of file StmtOpenMP.h.


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