clang API Documentation
This represents '#pragma omp critical' directive. More...
#include <StmtOpenMP.h>


Public Member Functions | |
| DeclarationNameInfo | getDirectiveName () const |
| Return name of the directive. | |
Static Public Member Functions | |
| static OMPCriticalDirective * | Create (const ASTContext &C, const DeclarationNameInfo &Name, SourceLocation StartLoc, SourceLocation EndLoc, Stmt *AssociatedStmt) |
| Creates directive. | |
| static OMPCriticalDirective * | CreateEmpty (const ASTContext &C, EmptyShell) |
| Creates an empty directive. | |
| static bool | classof (const Stmt *T) |
Friends | |
| class | ASTStmtReader |
This represents '#pragma omp critical' directive.
#pragma omp critical
Definition at line 853 of file StmtOpenMP.h.
| 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.
| C | AST context. |
| Name | Name of the directive. |
| StartLoc | Starting location of the directive kind. |
| EndLoc | Ending Location of the directive. |
| AssociatedStmt | Statement, 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().
| OMPCriticalDirective * OMPCriticalDirective::CreateEmpty | ( | const ASTContext & | C, |
| EmptyShell | |||
| ) | [static] |
Creates an empty directive.
| C | AST context. |
Definition at line 1707 of file Stmt.cpp.
References clang::ASTContext::Allocate().
| DeclarationNameInfo clang::OMPCriticalDirective::getDirectiveName | ( | ) | const [inline] |
Return name of the directive.
Definition at line 903 of file StmtOpenMP.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitOMPCriticalDirective().
friend class ASTStmtReader [friend] |
Reimplemented from clang::OMPExecutableDirective.
Definition at line 854 of file StmtOpenMP.h.