class OMPSingleDirective

Declaration

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

Description

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

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

Inherits from: OMPExecutableDirective

Member Variables

Inherited from OMPExecutableDirective:

protected Data = nullptr

Inherited from Stmt:

protected

Method Overview

  • public static clang::OMPSingleDirective * Create(const clang::ASTContext & C, clang::SourceLocation StartLoc, clang::SourceLocation EndLoc, ArrayRef<clang::OMPClause *> Clauses, clang::Stmt * AssociatedStmt)
  • public static clang::OMPSingleDirective * CreateEmpty(const clang::ASTContext & C, unsigned int NumClauses, clang::Stmt::EmptyShell)
  • private OMPSingleDirective(clang::SourceLocation StartLoc, clang::SourceLocation EndLoc)
  • private OMPSingleDirective()
  • public static bool classof(const clang::Stmt * T)

Inherited from OMPExecutableDirective:

Inherited from Stmt:

Methods

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

Description

Creates directive with a list of \a Clauses.

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

Parameters

const clang::ASTContext& C
AST context.
clang::SourceLocation StartLoc
Starting location of the directive kind.
clang::SourceLocation EndLoc
Ending Location of the directive.
ArrayRef<clang::OMPClause*> Clauses
List of clauses.
clang::Stmt* AssociatedStmt
Statement, associated with the directive.

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

Description

Creates an empty directive with the place for \a NumClauses clauses.

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

Parameters

const clang::ASTContext& C
AST context.
unsigned int NumClauses
Number of clauses.
clang::Stmt::EmptyShell

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

Description

Build directive with the given start and end location.

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

Parameters

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

OMPSingleDirective()

Description

Build an empty directive.

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

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

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

Parameters

const clang::Stmt* T