clang 22.0.0git
TextNodeDumper.cpp File Reference
#include "clang/AST/TextNodeDumper.h"
#include "clang/AST/APValue.h"
#include "clang/AST/DeclFriend.h"
#include "clang/AST/DeclOpenMP.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/LocInfoType.h"
#include "clang/AST/NestedNameSpecifier.h"
#include "clang/AST/Type.h"
#include "clang/AST/TypeLocVisitor.h"
#include "clang/Basic/Module.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/Specifiers.h"
#include "clang/Basic/TypeTraits.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Frontend/HLSL/HLSLRootSignature.h"
#include <algorithm>
#include <utility>
#include "clang/AST/DeclNodes.inc"
#include "clang/Basic/AttrList.inc"
#include "clang/Basic/FPOptions.def"
#include "clang/Basic/TransformTypeTraits.def"

Go to the source code of this file.

Macros

#define DECL(DERIVED, BASE)
#define ABSTRACT_DECL(DECL)
#define ATTR(X)
#define FP_OPTION(NAME, TYPE, WIDTH, PREVIOUS)
#define TRANSFORM_TYPE_TRAIT_DEF(Enum, Trait)
#define FLAG(fn, name)

Functions

static void dumpPreviousDeclImpl (raw_ostream &OS,...)
template<typename T>
static void dumpPreviousDeclImpl (raw_ostream &OS, const Mergeable< T > *D)
template<typename T>
static void dumpPreviousDeclImpl (raw_ostream &OS, const Redeclarable< T > *D)
static void dumpPreviousDecl (raw_ostream &OS, const Decl *D)
 Dump the previous declaration in the redeclaration chain for a declaration, if any.
static double GetApproxValue (const llvm::APFloat &F)
static bool isSimpleAPValue (const APValue &Value)
 True if the APValue Value can be folded onto the current line.
static void dumpBasePath (raw_ostream &OS, const CastExpr *Node)

Macro Definition Documentation

◆ ABSTRACT_DECL

#define ABSTRACT_DECL ( DECL)

◆ ATTR

#define ATTR ( X)
Value:
case attr::X: \
OS << #X; \
break;
#define X(type, name)
Definition Value.h:97

◆ DECL

#define DECL ( DERIVED,
BASE )
Value:
case Decl::DERIVED: \
static void dumpPreviousDeclImpl(raw_ostream &OS,...)
U cast(CodeGen::Address addr)
Definition Address.h:327

◆ FLAG

#define FLAG ( fn,
name )
Value:
if (D->fn()) \
OS << " " #name;

Referenced by clang::TextNodeDumper::VisitCXXRecordDecl().

◆ FP_OPTION

#define FP_OPTION ( NAME,
TYPE,
WIDTH,
PREVIOUS )
Value:
if (FPO.has##NAME##Override()) \
OS << " " #NAME "=" << FPO.get##NAME##Override();
@ Override
Merge availability attributes for an override, which requires an exact match or a weakening of constr...
Definition Sema.h:634

◆ TRANSFORM_TYPE_TRAIT_DEF

#define TRANSFORM_TYPE_TRAIT_DEF ( Enum,
Trait )
Value:
case UnaryTransformType::Enum: \
OS << " " #Trait; \
break;

Function Documentation

◆ dumpBasePath()

◆ dumpPreviousDecl()

void dumpPreviousDecl ( raw_ostream & OS,
const Decl * D )
static

Dump the previous declaration in the redeclaration chain for a declaration, if any.

Definition at line 52 of file TextNodeDumper.cpp.

References clang::Decl::getKind().

Referenced by clang::TextNodeDumper::Visit().

◆ dumpPreviousDeclImpl() [1/3]

template<typename T>
void dumpPreviousDeclImpl ( raw_ostream & OS,
const Mergeable< T > * D )
static

◆ dumpPreviousDeclImpl() [2/3]

template<typename T>
void dumpPreviousDeclImpl ( raw_ostream & OS,
const Redeclarable< T > * D )
static

◆ dumpPreviousDeclImpl() [3/3]

void dumpPreviousDeclImpl ( raw_ostream & OS,
... )
static

Definition at line 34 of file TextNodeDumper.cpp.

◆ GetApproxValue()

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

Definition at line 598 of file TextNodeDumper.cpp.

References V.

◆ isSimpleAPValue()