clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions | Friends
clang::OMPThreadPrivateDecl Class Reference

This represents '#pragma omp threadprivate ...' directive. For example, in the following, both 'a' and 'A::b' are threadprivate: More...

#include <DeclOpenMP.h>

Inheritance diagram for clang::OMPThreadPrivateDecl:
Inheritance graph
[legend]
Collaboration diagram for clang::OMPThreadPrivateDecl:
Collaboration graph
[legend]

List of all members.

Public Types

typedef MutableArrayRef< Expr * >
::iterator 
varlist_iterator
typedef ArrayRef< const Expr * >
::iterator 
varlist_const_iterator
typedef llvm::iterator_range
< varlist_iterator
varlist_range
typedef llvm::iterator_range
< varlist_const_iterator
varlist_const_range

Public Member Functions

unsigned varlist_size () const
bool varlist_empty () const
varlist_range varlists ()
varlist_const_range varlists () const
varlist_iterator varlist_begin ()
varlist_iterator varlist_end ()
varlist_const_iterator varlist_begin () const
varlist_const_iterator varlist_end () const

Static Public Member Functions

static OMPThreadPrivateDeclCreate (ASTContext &C, DeclContext *DC, SourceLocation L, ArrayRef< Expr * > VL)
static OMPThreadPrivateDeclCreateDeserialized (ASTContext &C, unsigned ID, unsigned N)
static bool classof (const Decl *D)
static bool classofKind (Kind K)

Friends

class ASTDeclReader

Detailed Description

This represents '#pragma omp threadprivate ...' directive. For example, in the following, both 'a' and 'A::b' are threadprivate:

 int a;
 #pragma omp threadprivate(a)
 struct A {
   static int b;
 #pragma omp threadprivate(b)
 };

Definition at line 36 of file DeclOpenMP.h.


Member Typedef Documentation

typedef ArrayRef<const Expr *>::iterator clang::OMPThreadPrivateDecl::varlist_const_iterator

Definition at line 66 of file DeclOpenMP.h.

Definition at line 68 of file DeclOpenMP.h.

typedef MutableArrayRef<Expr *>::iterator clang::OMPThreadPrivateDecl::varlist_iterator

Definition at line 65 of file DeclOpenMP.h.

Definition at line 67 of file DeclOpenMP.h.


Member Function Documentation

static bool clang::OMPThreadPrivateDecl::classof ( const Decl D) [inline, static]

Definition at line 84 of file DeclOpenMP.h.

References classofKind(), and clang::Decl::getKind().

static bool clang::OMPThreadPrivateDecl::classofKind ( Kind  K) [inline, static]

Reimplemented from clang::Decl.

Definition at line 85 of file DeclOpenMP.h.

Referenced by classof().

OMPThreadPrivateDecl * OMPThreadPrivateDecl::Create ( ASTContext C,
DeclContext DC,
SourceLocation  L,
ArrayRef< Expr * >  VL 
) [static]

Definition at line 28 of file DeclOpenMP.cpp.

References AttributeLangSupport::C.

Referenced by clang::Sema::CheckOMPThreadPrivateDecl().

Definition at line 39 of file DeclOpenMP.cpp.

References AttributeLangSupport::C.

Definition at line 79 of file DeclOpenMP.h.

Referenced by varlists().

Definition at line 81 of file DeclOpenMP.h.

Definition at line 71 of file DeclOpenMP.h.

Definition at line 80 of file DeclOpenMP.h.

Referenced by varlists().

Definition at line 82 of file DeclOpenMP.h.

Definition at line 76 of file DeclOpenMP.h.

References varlist_begin(), and varlist_end().


Friends And Related Function Documentation

friend class ASTDeclReader [friend]

Reimplemented from clang::Decl.

Definition at line 37 of file DeclOpenMP.h.


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