#include #include "clang/AST/DeclNodes.inc" #include "clang/Basic/AttrList.inc" #include "clang/Basic/FPOptions.def" #include "clang/Basic/TransformTypeTraits.def"">

clang: lib/AST/TextNodeDumper.cpp File Reference (original) (raw)

#include "[clang/AST/TextNodeDumper.h](TextNodeDumper%5F8h%5Fsource.html)"
#include "[clang/AST/APValue.h](APValue%5F8h%5Fsource.html)"
#include "[clang/AST/DeclFriend.h](DeclFriend%5F8h%5Fsource.html)"
#include "[clang/AST/DeclOpenMP.h](DeclOpenMP%5F8h%5Fsource.html)"
#include "[clang/AST/DeclTemplate.h](DeclTemplate%5F8h%5Fsource.html)"
#include "[clang/AST/LocInfoType.h](LocInfoType%5F8h%5Fsource.html)"
#include "[clang/AST/NestedNameSpecifier.h](NestedNameSpecifier%5F8h%5Fsource.html)"
#include "[clang/AST/Type.h](Type%5F8h%5Fsource.html)"
#include "[clang/AST/TypeLocVisitor.h](TypeLocVisitor%5F8h%5Fsource.html)"
#include "[clang/Basic/Module.h](Module%5F8h%5Fsource.html)"
#include "[clang/Basic/SourceManager.h](SourceManager%5F8h%5Fsource.html)"
#include "[clang/Basic/Specifiers.h](Specifiers%5F8h%5Fsource.html)"
#include "[clang/Basic/TypeTraits.h](TypeTraits%5F8h%5Fsource.html)"
#include "llvm/ADT/StringExtras.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 OPTION(NAME, TYPE, WIDTH, PREVIOUS)
#define TRANSFORM_TYPE_TRAIT_DEF(Enum, Trait)
#define FLAG(fn, name)
Functions
static void dumpPreviousDeclImpl (raw_ostream &OS,...)
template
static void dumpPreviousDeclImpl (raw_ostream &OS, const Mergeable< T > *D)
template
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)

ABSTRACT_DECL

| #define ABSTRACT_DECL | ( | | DECL | ) | | ---------------------- | - | | ---------------------------------------------------------- | - |

ATTR

Value:

case attr::X: \

OS << #X; \

break;

DECL

| #define DECL | ( | | DERIVED, | | ------------ | - | | -------- | | | BASE | | | | | ) | | | |

Value:

case Decl::DERIVED: \

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

FLAG

| #define FLAG | ( | | fn, | | ------------ | - | | --- | | | name | | | | | ) | | | |

Value:

if (D->fn()) \

OS << " " #name;

OPTION

| #define OPTION | ( | | NAME, | | -------------------------------------------------------------- | - | | ----- | | | TYPE, | | | | | | WIDTH, | | | | | | PREVIOUS | | | | | ) | | | |

Value:

if (FPO.has##NAME##Override()) \

OS << " " #NAME "=" << FPO.get##NAME##Override();

TRANSFORM_TYPE_TRAIT_DEF

| #define TRANSFORM_TYPE_TRAIT_DEF | ( | | Enum, | | ----------------------------------- | - | | ----------------------------------------------------------------------------------------------------- | | | Trait | | | | | ) | | | |

Value:

case UnaryTransformType::Enum: \

OS << " " #Trait; \

break;

dumpBasePath()

static void dumpBasePath ( raw_ostream & OS, const CastExpr * Node ) static

dumpPreviousDecl()

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

dumpPreviousDeclImpl() [1/3]

template

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

dumpPreviousDeclImpl() [2/3]

template

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

dumpPreviousDeclImpl() [3/3]

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

GetApproxValue()

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

isSimpleAPValue()

static bool isSimpleAPValue ( const APValue & Value) static

True if the APValue Value can be folded onto the current line.

Definition at line 586 of file TextNodeDumper.cpp.

References clang::APValue::AddrLabelDiff, clang::APValue::Array, clang::APValue::ComplexFloat, clang::APValue::ComplexInt, clang::APValue::FixedPoint, clang::APValue::Float, clang::Value::getKind(), clang::APValue::Indeterminate, clang::APValue::Int, isSimpleAPValue(), clang::APValue::LValue, clang::APValue::MemberPointer, clang::APValue::None, clang::APValue::Struct, clang::APValue::Union, and clang::APValue::Vector.

Referenced by isSimpleAPValue(), and clang::TextNodeDumper::Visit().