class OMPSectionDirective

Declaration

class OMPSectionDirective : public OMPExecutableDirective { /* full declaration omitted */ };

Description

This represents '#pragma omp section' directive.

Declared at: clang/include/clang/AST/StmtOpenMP.h:1862

Inherits from: OMPExecutableDirective

Member Variables

private bool HasCancel = false
true if current directive has inner cancel directive.

Inherited from OMPExecutableDirective:

protected Data = nullptr

Inherited from Stmt:

protected

Method Overview

  • public static clang::OMPSectionDirective * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation EndLoc, clang::Stmt * AssociatedStmt, bool HasCancel)
  • public static clang::OMPSectionDirective * CreateEmpty(const clang::ASTContext & C, clang::Stmt::EmptyShell)
  • private OMPSectionDirective(clang::SourceLocation StartLoc, clang::SourceLocation EndLoc)
  • private OMPSectionDirective()
  • public static bool classof(const clang::Stmt * T)
  • public bool hasCancel() const
  • public void setHasCancel(bool Has)

Inherited from OMPExecutableDirective:

Inherited from Stmt:

Methods

static clang::OMPSectionDirective* Create(
    const clang::ASTContext& C,
    clang::SourceLocation StartLoc,
    clang::SourceLocation EndLoc,
    clang::Stmt* AssociatedStmt,
    bool HasCancel)

Description

Creates directive.

Declared at: clang/include/clang/AST/StmtOpenMP.h:1894

Parameters

const clang::ASTContext& C
AST context.
clang::SourceLocation StartLoc
Starting location of the directive kind.
clang::SourceLocation EndLoc
Ending Location of the directive.
clang::Stmt* AssociatedStmt
Statement, associated with the directive.
bool HasCancel
true if current directive has inner directive.

static clang::OMPSectionDirective* CreateEmpty(
    const clang::ASTContext& C,
    clang::Stmt::EmptyShell)

Description

Creates an empty directive.

Declared at: clang/include/clang/AST/StmtOpenMP.h:1903

Parameters

const clang::ASTContext& C
AST context.
clang::Stmt::EmptyShell

OMPSectionDirective(
    clang::SourceLocation StartLoc,
    clang::SourceLocation EndLoc)

Description

Build directive with the given start and end location.

Declared at: clang/include/clang/AST/StmtOpenMP.h:1874

Parameters

clang::SourceLocation StartLoc
Starting location of the directive kind.
clang::SourceLocation EndLoc
Ending location of the directive.

OMPSectionDirective()

Description

Build an empty directive.

Declared at: clang/include/clang/AST/StmtOpenMP.h:1880

static bool classof(const clang::Stmt* T)

Declared at: clang/include/clang/AST/StmtOpenMP.h:1911

Parameters

const clang::Stmt* T

bool hasCancel() const

Description

Return true if current directive has inner cancel directive.

Declared at: clang/include/clang/AST/StmtOpenMP.h:1909

void setHasCancel(bool Has)

Description

Set cancel state.

Declared at: clang/include/clang/AST/StmtOpenMP.h:1906

Parameters

bool Has