clang 22.0.0git
InterpreterValuePrinter.cpp File Reference
#include "IncrementalAction.h"
#include "InterpreterUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/PrettyPrinter.h"
#include "clang/AST/Type.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Interpreter/Interpreter.h"
#include "clang/Interpreter/Value.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Sema/Lookup.h"
#include "clang/Sema/Sema.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <cmath>
#include <cstdarg>
#include <sstream>
#include <string>

Go to the source code of this file.

Classes

struct  clang::ValueRef
class  clang::InterfaceKindVisitor
struct  __clang_Interpreter_NewTag

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.

Macros

#define DEBUG_TYPE   "interp-value"

Enumerations

enum  clang::InterfaceKind { clang::NoAlloc , clang::WithAlloc , clang::CopyArray , clang::NewTag }

Functions

static std::string DeclTypeToString (const QualType &QT, NamedDecl *D)
static std::string QualTypeToString (ASTContext &Ctx, QualType QT)
static std::string EnumToString (const Value &V)
static std::string FunctionToString (const Value &V, const void *Ptr)
static std::string VoidPtrToString (const void *Ptr)
static std::string CharPtrToString (const char *Ptr)
REPL_EXTERNAL_VISIBILITY void * __clang_Interpreter_SetValueWithAlloc (void *This, void *OutVal, void *OpaqueType)
REPL_EXTERNAL_VISIBILITY void __clang_Interpreter_SetValueNoAlloc (void *This, void *OutVal, void *OpaqueType,...)
REPL_EXTERNAL_VISIBILITY void * operator new (size_t __sz, void *__p, __clang_Interpreter_NewTag) noexcept

Variables

static constexpr llvm::StringRef clang::VPName []

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "interp-value"

Definition at line 34 of file InterpreterValuePrinter.cpp.

Function Documentation

◆ __clang_Interpreter_SetValueNoAlloc()

◆ __clang_Interpreter_SetValueWithAlloc()

REPL_EXTERNAL_VISIBILITY void * __clang_Interpreter_SetValueWithAlloc ( void * This,
void * OutVal,
void * OpaqueType )

Definition at line 641 of file InterpreterValuePrinter.cpp.

References clang::Value::getPtr().

◆ CharPtrToString()

std::string CharPtrToString ( const char * Ptr)
static

Definition at line 164 of file InterpreterValuePrinter.cpp.

◆ DeclTypeToString()

◆ EnumToString()

std::string EnumToString ( const Value & V)
static

◆ FunctionToString()

std::string FunctionToString ( const Value & V,
const void * Ptr )
static

◆ operator new()

REPL_EXTERNAL_VISIBILITY void * operator new ( size_t __sz,
void * __p,
__clang_Interpreter_NewTag  )
noexcept

Definition at line 734 of file InterpreterValuePrinter.cpp.

References __p.

◆ QualTypeToString()

◆ VoidPtrToString()

std::string VoidPtrToString ( const void * Ptr)
static

Definition at line 157 of file InterpreterValuePrinter.cpp.