class NodeStreamer
Declaration
class NodeStreamer { /* full declaration omitted */ };
Declared at: clang/include/clang/AST/JSONNodeDumper.h:33
Member Variables
- private bool FirstChild = true
- private bool TopLevel = true
- private llvm::SmallVector<std::function<void(bool)>, 32> Pending
- protected llvm::json::OStream JOS
Method Overview
- public template <typename Fn>void AddChild(Fn DoAddChild)
- public template <typename Fn>void AddChild(llvm::StringRef Label, Fn DoAddChild)
- public NodeStreamer(llvm::raw_ostream & OS)
Methods
¶template <typename Fn>
void AddChild(Fn DoAddChild)
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/JSONNodeDumper.h:43
Templates
- Fn
Parameters
- Fn DoAddChild
¶template <typename Fn>
void AddChild(llvm::StringRef Label,
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/JSONNodeDumper.h:49
Templates
- Fn
Parameters
- llvm::StringRef Label
- Fn DoAddChild
¶NodeStreamer(llvm::raw_ostream& OS)
NodeStreamer(llvm::raw_ostream& OS)
Declared at: clang/include/clang/AST/JSONNodeDumper.h:108