clang 24.0.0git
APValue.cpp File Reference
#include "clang/AST/APValue.h"
#include "Linkage.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/Type.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"

Go to the source code of this file.

Classes

struct  clang::APValue::LV
struct  clang::APValue::MemberPointerData

Namespaces

namespace  clang
 Top level wrappers for InstallAPI frontend operations.

Functions

bool clang::operator== (const APValue::LValueBase &LHS, const APValue::LValueBase &RHS)
llvm::hash_code clang::hash_value (const APValue::LValueBase &Base)
static void profileIntValue (llvm::FoldingSetNodeID &ID, const llvm::APInt &V)
 Profile the value of an APInt, excluding its bit-width.
static void profileTypeReflection (llvm::FoldingSetNodeID &ID, QualType QT)
 Unwrap reflected type for profiling.
static void profileReflection (llvm::FoldingSetNodeID &ID, APValue V)
static double GetApproxValue (const llvm::APFloat &F)
static bool TryPrintAsStringLiteral (raw_ostream &Out, const PrintingPolicy &Policy, const ArrayType *ATy, ArrayRef< APValue > Inits)

Function Documentation

◆ GetApproxValue()

double GetApproxValue ( const llvm::APFloat & F)
static

Definition at line 678 of file APValue.cpp.

References V.

Referenced by clang::APValue::printPretty(), and clang::TextNodeDumper::Visit().

◆ profileIntValue()

void profileIntValue ( llvm::FoldingSetNodeID & ID,
const llvm::APInt & V )
static

Profile the value of an APInt, excluding its bit-width.

Definition at line 488 of file APValue.cpp.

References uint32_t, and V.

Referenced by clang::APValue::Profile().

◆ profileReflection()

void profileReflection ( llvm::FoldingSetNodeID & ID,
APValue V )
static

◆ profileTypeReflection()

void profileTypeReflection ( llvm::FoldingSetNodeID & ID,
QualType QT )
static

Unwrap reflected type for profiling.

Definition at line 494 of file APValue.cpp.

References clang::Type::getAs(), clang::QualType::getCanonicalType(), clang::isTypeAliasAsReflectionName(), and clang::QualType::Profile().

Referenced by profileReflection().

◆ TryPrintAsStringLiteral()