class ValueDecl

Declaration

class ValueDecl : public NamedDecl { /* full declaration omitted */ };

Description

Represent the declaration of a variable (in which case it is an lvalue) a function (in which case it is a function designator) or an enum constant.

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

Inherits from: NamedDecl

Member Variables

private clang::QualType DeclType

Inherited from Decl:

protected NextInContextAndBits
protected Access
protected FromASTFile
protected IdentifierNamespace
protected CacheValidAndLinkage

Method Overview

  • protected ValueDecl(clang::Decl::Kind DK, clang::DeclContext * DC, clang::SourceLocation L, clang::DeclarationName N, clang::QualType T)
  • private void anchor()
  • public static bool classof(const clang::Decl * D)
  • public static bool classofKind(clang::Decl::Kind K)
  • public clang::QualType getType() const
  • public bool isWeak() const
  • public void setType(clang::QualType newType)

Inherited from NamedDecl:

Inherited from Decl:

Methods

ValueDecl(clang::Decl::Kind DK,
          clang::DeclContext* DC,
          clang::SourceLocation L,
          clang::DeclarationName N,
          clang::QualType T)

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

Parameters

clang::Decl::Kind DK
clang::DeclContext* DC
clang::SourceLocation L
clang::DeclarationName N
clang::QualType T

void anchor()

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

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

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

Parameters

const clang::Decl* D

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

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

Parameters

clang::Decl::Kind K

clang::QualType getType() const

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

bool isWeak() const

Description

Determine whether this symbol is weakly-imported, or declared with the weak or weak-ref attr.

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

void setType(clang::QualType newType)

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

Parameters

clang::QualType newType