class TextTreeStructure

Declaration

class TextTreeStructure { /* full declaration omitted */ };

Declared at: clang/include/clang/AST/TextNodeDumper.h:33

Member Variables

private llvm::raw_ostream& OS
private const bool ShowColors
private llvm::SmallVector<std::function<void(bool)>, 32> Pending
Pending[i] is an action to dump an entity at level i.
private bool TopLevel = true
Indicates whether we're at the top level.
private bool FirstChild = true
Indicates if we're handling the first child after entering a new depth.
private std::string Prefix
Prefix for currently-being-dumped entity.

Method Overview

  • public template <typename Fn>void AddChild(Fn DoAddChild)
  • public template <typename Fn>void AddChild(llvm::StringRef Label, Fn DoAddChild)
  • public TextTreeStructure(llvm::raw_ostream & OS, bool ShowColors)

Methods

template <typename Fn>
void AddChild(Fn DoAddChild)

Description

Add a child of the current node. Calls DoAddChild without arguments

Declared at: clang/include/clang/AST/TextNodeDumper.h:51

Templates

Fn

Parameters

Fn DoAddChild

template <typename Fn>
void AddChild(llvm::StringRef Label,
              Fn DoAddChild)

Description

Add a child of the current node with an optional label. Calls DoAddChild without arguments.

Declared at: clang/include/clang/AST/TextNodeDumper.h:57

Templates

Fn

Parameters

llvm::StringRef Label
Fn DoAddChild

TextTreeStructure(llvm::raw_ostream& OS,
                  bool ShowColors)

Declared at: clang/include/clang/AST/TextNodeDumper.h:123

Parameters

llvm::raw_ostream& OS
bool ShowColors