clang API Documentation
This represents '#pragma omp section' directive. More...
#include <StmtOpenMP.h>
Static Public Member Functions | |
static OMPSectionDirective * | Create (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, Stmt *AssociatedStmt) |
Creates directive. | |
static OMPSectionDirective * | CreateEmpty (const ASTContext &C, EmptyShell) |
Creates an empty directive. | |
static bool | classof (const Stmt *T) |
Friends | |
class | ASTStmtReader |
This represents '#pragma omp section' directive.
#pragma omp section
Definition at line 702 of file StmtOpenMP.h.
static bool clang::OMPSectionDirective::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::OMPExecutableDirective.
Definition at line 738 of file StmtOpenMP.h.
References clang::Stmt::getStmtClass().
OMPSectionDirective * OMPSectionDirective::Create | ( | const ASTContext & | C, |
SourceLocation | StartLoc, | ||
SourceLocation | EndLoc, | ||
Stmt * | AssociatedStmt | ||
) | [static] |
Creates directive.
C | AST context. |
StartLoc | Starting location of the directive kind. |
EndLoc | Ending Location of the directive. |
AssociatedStmt | Statement, associated with the directive. |
Definition at line 1629 of file Stmt.cpp.
References clang::ASTContext::Allocate(), and clang::OMPExecutableDirective::setAssociatedStmt().
Referenced by clang::Sema::ActOnOpenMPSectionDirective().
OMPSectionDirective * OMPSectionDirective::CreateEmpty | ( | const ASTContext & | C, |
EmptyShell | |||
) | [static] |
Creates an empty directive.
C | AST context. |
Definition at line 1641 of file Stmt.cpp.
References clang::ASTContext::Allocate().
friend class ASTStmtReader [friend] |
Reimplemented from clang::OMPExecutableDirective.
Definition at line 703 of file StmtOpenMP.h.