clang API Documentation

Public Member Functions | Static Public Member Functions
clang::TranslationUnitDecl Class Reference

TranslationUnitDecl - The top declaration context. More...

#include <Decl.h>

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

List of all members.

Public Member Functions

ASTContextgetASTContext () const
NamespaceDeclgetAnonymousNamespace () const
void setAnonymousNamespace (NamespaceDecl *D)

Static Public Member Functions

static TranslationUnitDeclCreate (ASTContext &C)
static bool classof (const Decl *D)
static bool classof (const TranslationUnitDecl *D)
static bool classofKind (Kind K)
static DeclContextcastToDeclContext (const TranslationUnitDecl *D)
static TranslationUnitDeclcastFromDeclContext (const DeclContext *DC)

Detailed Description

TranslationUnitDecl - The top declaration context.

Definition at line 69 of file Decl.h.


Member Function Documentation

static TranslationUnitDecl* clang::TranslationUnitDecl::castFromDeclContext ( const DeclContext DC) [inline, static]

Reimplemented from clang::Decl.

Definition at line 95 of file Decl.h.

static DeclContext* clang::TranslationUnitDecl::castToDeclContext ( const TranslationUnitDecl D) [inline, static]

Definition at line 92 of file Decl.h.

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

Reimplemented from clang::Decl.

Definition at line 89 of file Decl.h.

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

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

Definition at line 90 of file Decl.h.

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

Reimplemented from clang::Decl.

Definition at line 91 of file Decl.h.

Referenced by classof().

TranslationUnitDecl * TranslationUnitDecl::Create ( ASTContext C) [static]

Definition at line 2759 of file Decl.cpp.

Referenced by clang::ASTContext::ASTContext().

NamespaceDecl* clang::TranslationUnitDecl::getAnonymousNamespace ( ) const [inline]

Definition at line 84 of file Decl.h.

ASTContext& clang::TranslationUnitDecl::getASTContext ( ) const [inline]

Reimplemented from clang::Decl.

Definition at line 82 of file Decl.h.

Referenced by clang::Decl::getASTContext(), and clang::FunctionDecl::isMain().

void clang::TranslationUnitDecl::setAnonymousNamespace ( NamespaceDecl D) [inline]

Definition at line 85 of file Decl.h.


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