class UnnamedGlobalConstantDecl

Declaration

class UnnamedGlobalConstantDecl : public ValueDecl,
                                  public Mergeable,
                                  public Node { /* full declaration omitted */ };

Description

An artificial decl, representing a global anonymous constant value which is uniquified by value within a translation unit. These is currently only used to back the LValue returned by __builtin_source_location, but could potentially be used for other similar situations in the future.

Declared at: clang/include/clang/AST/DeclCXX.h:4228

Inherits from: ValueDecl, Mergeable, FoldingSetBase::Node

Member Variables

private clang::APValue Value

Inherited from Decl:

protected NextInContextAndBits
protected Access
protected FromASTFile
protected IdentifierNamespace
protected CacheValidAndLinkage

Method Overview

  • private static clang::UnnamedGlobalConstantDecl * Create(const clang::ASTContext & C, clang::QualType T, const clang::APValue & APVal)
  • private static clang::UnnamedGlobalConstantDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID)
  • public static void Profile(llvm::FoldingSetNodeID & ID, clang::QualType Ty, const clang::APValue & APVal)
  • public void Profile(llvm::FoldingSetNodeID & ID)
  • private UnnamedGlobalConstantDecl(const clang::ASTContext & C, clang::DeclContext * DC, clang::QualType T, const clang::APValue & Val)
  • private void anchor()
  • public static bool classof(const clang::Decl * D)
  • public static bool classofKind(clang::Decl::Kind K)
  • public const clang::APValue & getValue() const
  • public void printName(llvm::raw_ostream & OS) const

Inherited from FoldingSetBase::Node:

Inherited from ValueDecl:

Inherited from NamedDecl:

Inherited from Decl:

Methods

static clang::UnnamedGlobalConstantDecl* Create(
    const clang::ASTContext& C,
    clang::QualType T,
    const clang::APValue& APVal)

Declared at: clang/include/clang/AST/DeclCXX.h:4240

Parameters

const clang::ASTContext& C
clang::QualType T
const clang::APValue& APVal

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

Declared at: clang/include/clang/AST/DeclCXX.h:4242

Parameters

clang::ASTContext& C
unsigned int ID

static void Profile(llvm::FoldingSetNodeID& ID,
                    clang::QualType Ty,
                    const clang::APValue& APVal)

Declared at: clang/include/clang/AST/DeclCXX.h:4257

Parameters

llvm::FoldingSetNodeID& ID
clang::QualType Ty
const clang::APValue& APVal

void Profile(llvm::FoldingSetNodeID& ID)

Declared at: clang/include/clang/AST/DeclCXX.h:4262

Parameters

llvm::FoldingSetNodeID& ID

UnnamedGlobalConstantDecl(
    const clang::ASTContext& C,
    clang::DeclContext* DC,
    clang::QualType T,
    const clang::APValue& Val)

Declared at: clang/include/clang/AST/DeclCXX.h:4237

Parameters

const clang::ASTContext& C
clang::DeclContext* DC
clang::QualType T
const clang::APValue& Val

void anchor()

Declared at: clang/include/clang/AST/DeclCXX.h:4235

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

Declared at: clang/include/clang/AST/DeclCXX.h:4266

Parameters

const clang::Decl* D

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

Declared at: clang/include/clang/AST/DeclCXX.h:4267

Parameters

clang::Decl::Kind K

const clang::APValue& getValue() const

Declared at: clang/include/clang/AST/DeclCXX.h:4255

void printName(llvm::raw_ostream& OS) const

Description

Print this in a human-readable format.

Declared at: clang/include/clang/AST/DeclCXX.h:4253

Parameters

llvm::raw_ostream& OS