clang 20.0.0git
Classes | Namespaces | Functions
APValue.cpp File Reference
#include "clang/AST/APValue.h"
#include "Linkage.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/CharUnits.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
 The JSON file list parser is used to communicate input to InstallAPI.
 

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 double GetApproxValue (const llvm::APFloat &F)
 
static bool TryPrintAsStringLiteral (raw_ostream &Out, const PrintingPolicy &Policy, const ArrayType *ATy, ArrayRef< APValue > Inits)
 
MutableArrayRef< APValue::LValuePathEntrysetLValueUninit (APValue::LValueBase B, const CharUnits &O, unsigned Size, bool OnePastTheEnd, bool IsNullPtr)
 

Function Documentation

◆ GetApproxValue()

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

Definition at line 622 of file APValue.cpp.

References V.

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

◆ profileIntValue()

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

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

Definition at line 474 of file APValue.cpp.

References V.

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

◆ setLValueUninit()

MutableArrayRef< APValue::LValuePathEntry > setLValueUninit ( APValue::LValueBase  B,
const CharUnits O,
unsigned  Size,
bool  OnePastTheEnd,
bool  IsNullPtr 
)

◆ TryPrintAsStringLiteral()

static bool TryPrintAsStringLiteral ( raw_ostream &  Out,
const PrintingPolicy Policy,
const ArrayType ATy,
ArrayRef< APValue Inits 
)
static