clang API Documentation
TranslationUnitDecl - The top declaration context. More...
#include <Decl.h>
Public Member Functions | |
ASTContext & | getASTContext () const |
NamespaceDecl * | getAnonymousNamespace () const |
void | setAnonymousNamespace (NamespaceDecl *D) |
Static Public Member Functions | |
static TranslationUnitDecl * | Create (ASTContext &C) |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
static DeclContext * | castToDeclContext (const TranslationUnitDecl *D) |
static TranslationUnitDecl * | castFromDeclContext (const DeclContext *DC) |
TranslationUnitDecl - The top declaration context.
static TranslationUnitDecl* clang::TranslationUnitDecl::castFromDeclContext | ( | const DeclContext * | DC | ) | [inline, static] |
Reimplemented from clang::Decl.
static DeclContext* clang::TranslationUnitDecl::castToDeclContext | ( | const TranslationUnitDecl * | D | ) | [inline, static] |
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] |
TranslationUnitDecl * TranslationUnitDecl::Create | ( | ASTContext & | C | ) | [static] |
Definition at line 3726 of file Decl.cpp.
References AttributeLangSupport::C.
Referenced by clang::ASTContext::ASTContext().
NamespaceDecl* clang::TranslationUnitDecl::getAnonymousNamespace | ( | ) | const [inline] |
ASTContext& clang::TranslationUnitDecl::getASTContext | ( | ) | const [inline] |
Reimplemented from clang::Decl.
Definition at line 90 of file Decl.h.
Referenced by clang::ASTMergeAction::ExecuteAction(), clang::Decl::getASTContext(), clang::FunctionDecl::isMain(), and clang::FunctionDecl::isMSVCRTEntryPoint().
void clang::TranslationUnitDecl::setAnonymousNamespace | ( | NamespaceDecl * | D | ) | [inline] |