clang 22.0.0git
OMPInteropDirective Class Referencefinal

This represents '#pragma omp interop' directive. More...

#include "clang/AST/StmtOpenMP.h"

Inheritance diagram for OMPInteropDirective:
[legend]

Static Public Member Functions

static OMPInteropDirectiveCreate (const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, ArrayRef< OMPClause * > Clauses)
 Creates directive.
static OMPInteropDirectiveCreateEmpty (const ASTContext &C, unsigned NumClauses, EmptyShell)
 Creates an empty directive.
static bool classof (const Stmt *T)

Friends

class ASTStmtReader
class OMPExecutableDirective

Detailed Description

This represents '#pragma omp interop' directive.

#pragma omp interop init(target:obj) device(x) depend(inout:y) nowait

In this example directive '#pragma omp interop' has clauses 'init', 'device', 'depend' and 'nowait'.

Definition at line 5982 of file StmtOpenMP.h.

Member Function Documentation

◆ classof()

bool OMPInteropDirective::classof ( const Stmt * T)
inlinestatic

Definition at line 6022 of file StmtOpenMP.h.

◆ Create()

OMPInteropDirective * OMPInteropDirective::Create ( const ASTContext & C,
SourceLocation StartLoc,
SourceLocation EndLoc,
ArrayRef< OMPClause * > Clauses )
static

Creates directive.

Parameters
CAST context.
StartLocStarting location of the directive.
EndLocEnding Location of the directive.
ClausesThe directive's clauses.

Definition at line 2360 of file StmtOpenMP.cpp.

References clang::C.

Referenced by clang::SemaOpenMP::ActOnOpenMPInteropDirective().

◆ CreateEmpty()

OMPInteropDirective * OMPInteropDirective::CreateEmpty ( const ASTContext & C,
unsigned NumClauses,
EmptyShell  )
static

Creates an empty directive.

Parameters
CAST context.

Definition at line 2368 of file StmtOpenMP.cpp.

References clang::C.

◆ ASTStmtReader

friend class ASTStmtReader
friend

Definition at line 5983 of file StmtOpenMP.h.

References ASTStmtReader.

Referenced by ASTStmtReader.

◆ OMPExecutableDirective

friend class OMPExecutableDirective
friend

Definition at line 5984 of file StmtOpenMP.h.

References OMPExecutableDirective.

Referenced by OMPExecutableDirective.


The documentation for this class was generated from the following files: