clang  6.0.0svn
Macros | Functions
ASTDumper.cpp File Reference
#include "clang/AST/ASTContext.h"
#include "clang/AST/Attr.h"
#include "clang/AST/CommentVisitor.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclLookups.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/DeclOpenMP.h"
#include "clang/AST/DeclVisitor.h"
#include "clang/AST/LocInfoType.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/AST/TypeVisitor.h"
#include "clang/Basic/Builtins.h"
#include "clang/Basic/Module.h"
#include "clang/Basic/SourceManager.h"
#include "llvm/Support/raw_ostream.h"
#include "clang/Basic/AttrList.inc"
#include "clang/AST/AttrDump.inc"
#include "clang/AST/DeclNodes.inc"
Include dependency graph for ASTDumper.cpp:

Go to the source code of this file.

Macros

#define ATTR(X)   case attr::X: OS << #X; break;
 
#define DECL(DERIVED, BASE)
 
#define ABSTRACT_DECL(DECL)
 
#define FLAG(fn, name)   if (D->fn()) OS << " " #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. More...
 
static void dumpBasePath (raw_ostream &OS, const CastExpr *Node)
 

Macro Definition Documentation

◆ ABSTRACT_DECL

#define ABSTRACT_DECL (   DECL)

◆ ATTR

#define ATTR (   X)    case attr::X: OS << #X; break;

◆ DECL

#define DECL (   DERIVED,
  BASE 
)
Value:
case Decl::DERIVED: \
return dumpPreviousDeclImpl(OS, cast<DERIVED##Decl>(D));
static void dumpPreviousDeclImpl(raw_ostream &OS,...)
Definition: ASTDumper.cpp:871

◆ FLAG

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

Function Documentation

◆ dumpBasePath()

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

Definition at line 2073 of file ASTDumper.cpp.

References clang::CastExpr::path_empty().

◆ dumpPreviousDecl()

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

◆ dumpPreviousDeclImpl() [1/3]

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

Definition at line 871 of file ASTDumper.cpp.

◆ dumpPreviousDeclImpl() [2/3]

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

Definition at line 874 of file ASTDumper.cpp.

References clang::Mergeable< decl_type >::getFirstDecl().

◆ dumpPreviousDeclImpl() [3/3]

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