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 classofKind (Kind K)
static DeclContextcastToDeclContext (const TranslationUnitDecl *D)
static TranslationUnitDeclcastFromDeclContext (const DeclContext *DC)

Detailed Description

TranslationUnitDecl - The top declaration context.

Definition at line 77 of file Decl.h.


Member Function Documentation

Reimplemented from clang::Decl.

Definition at line 102 of file Decl.h.

Definition at line 99 of file Decl.h.

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

Reimplemented from clang::DeclContext.

Definition at line 97 of file Decl.h.

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

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

Reimplemented from clang::Decl.

Definition at line 98 of file Decl.h.

Referenced by classof().

Definition at line 3726 of file Decl.cpp.

References AttributeLangSupport::C.

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

Definition at line 92 of file Decl.h.

Definition at line 93 of file Decl.h.


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