class TypedefDecl

Declaration

class TypedefDecl : public TypedefNameDecl { /* full declaration omitted */ };

Description

Represents the declaration of a typedef-name via the 'typedef' type specifier.

Declared at: clang/include/clang/AST/Decl.h:3320

Inherits from: TypedefNameDecl

Member Variables

Inherited from Decl:

protected NextInContextAndBits
protected Access
protected FromASTFile
protected IdentifierNamespace
protected CacheValidAndLinkage

Method Overview

  • public static clang::TypedefDecl * Create(clang::ASTContext & C, clang::DeclContext * DC, clang::SourceLocation StartLoc, clang::SourceLocation IdLoc, clang::IdentifierInfo * Id, clang::TypeSourceInfo * TInfo)
  • public static clang::TypedefDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID)
  • private TypedefDecl(clang::ASTContext & C, clang::DeclContext * DC, clang::SourceLocation StartLoc, clang::SourceLocation IdLoc, clang::IdentifierInfo * Id, clang::TypeSourceInfo * TInfo)
  • public static bool classof(const clang::Decl * D)
  • public static bool classofKind(clang::Decl::Kind K)
  • public clang::SourceRange getSourceRange() const

Inherited from TypedefNameDecl:

Inherited from TypeDecl:

Inherited from NamedDecl:

Inherited from Decl:

Methods

static clang::TypedefDecl* Create(
    clang::ASTContext& C,
    clang::DeclContext* DC,
    clang::SourceLocation StartLoc,
    clang::SourceLocation IdLoc,
    clang::IdentifierInfo* Id,
    clang::TypeSourceInfo* TInfo)

Declared at: clang/include/clang/AST/Decl.h:3326

Parameters

clang::ASTContext& C
clang::DeclContext* DC
clang::SourceLocation StartLoc
clang::SourceLocation IdLoc
clang::IdentifierInfo* Id
clang::TypeSourceInfo* TInfo

static clang::TypedefDecl* CreateDeserialized(
    clang::ASTContext& C,
    unsigned int ID)

Declared at: clang/include/clang/AST/Decl.h:3329

Parameters

clang::ASTContext& C
unsigned int ID

TypedefDecl(clang::ASTContext& C,
            clang::DeclContext* DC,
            clang::SourceLocation StartLoc,
            clang::SourceLocation IdLoc,
            clang::IdentifierInfo* Id,
            clang::TypeSourceInfo* TInfo)

Declared at: clang/include/clang/AST/Decl.h:3321

Parameters

clang::ASTContext& C
clang::DeclContext* DC
clang::SourceLocation StartLoc
clang::SourceLocation IdLoc
clang::IdentifierInfo* Id
clang::TypeSourceInfo* TInfo

static bool classof(const clang::Decl* D)

Declared at: clang/include/clang/AST/Decl.h:3334

Parameters

const clang::Decl* D

static bool classofKind(clang::Decl::Kind K)

Declared at: clang/include/clang/AST/Decl.h:3335

Parameters

clang::Decl::Kind K

clang::SourceRange getSourceRange() const

Description

Source range that this declaration covers.

Declared at: clang/include/clang/AST/Decl.h:3331