class OMPCriticalDirective

Declaration

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

Description

This represents '#pragma omp critical' directive.

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

Inherits from: OMPExecutableDirective

Member Variables

private clang::DeclarationNameInfo DirName
Name of the directive.

Inherited from OMPExecutableDirective:

protected Data = nullptr

Inherited from Stmt:

protected

Method Overview

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

Inherited from OMPExecutableDirective:

Inherited from Stmt:

Methods

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

Description

Creates directive.

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

Parameters

const clang::ASTContext& C
AST context.
const clang::DeclarationNameInfo& Name
Name of the directive.
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::OMPCriticalDirective* CreateEmpty(
    const clang::ASTContext& C,
    unsigned int NumClauses,
    clang::Stmt::EmptyShell)

Description

Creates an empty directive.

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

Parameters

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

OMPCriticalDirective(
    const clang::DeclarationNameInfo& Name,
    clang::SourceLocation StartLoc,
    clang::SourceLocation EndLoc)

Description

Build directive with the given start and end location.

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

Parameters

const clang::DeclarationNameInfo& Name
Name of the directive.
clang::SourceLocation StartLoc
Starting location of the directive kind.
clang::SourceLocation EndLoc
Ending location of the directive.

OMPCriticalDirective()

Description

Build an empty directive.

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

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

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

Parameters

const clang::Stmt* T

clang::DeclarationNameInfo getDirectiveName()
    const

Description

Return name of the directive.

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

void setDirectiveName(
    const clang::DeclarationNameInfo& Name)

Description

Set name of the directive.

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

Parameters

const clang::DeclarationNameInfo& Name
Name of the directive.