[clang-tools-extra] [clang-doc] Add Markdown AST node type definitions (PR #205609)

Neil Nair via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 28 14:45:46 PDT 2026


================
@@ -38,21 +38,22 @@ enum class NodeKind {
   NK_Document,
 };
 
-// Forward declarations
 struct InlineNode;
 struct BlockNode;
 
 //===----------------------------------------------------------------------===//
 // Inline nodes
 //===----------------------------------------------------------------------===//
 
-struct InlineNode
-    : llvm::ilist_node<InlineNode, llvm::ilist_sentinel_tracking<true>> {
+struct InlineNode : llvm::ilist_node<InlineNode> {
   NodeKind Kind;
   explicit InlineNode(NodeKind K) : Kind(K) {}
-  void dump(llvm::raw_ostream &OS = llvm::errs()) const;
+  void print(llvm::raw_ostream &OS) const;
+  LLVM_DUMP_METHOD void dump() const;
----------------
Neil-N4 wrote:

dump() only in the base now. subclasses inherit it

https://github.com/llvm/llvm-project/pull/205609


More information about the cfe-commits mailing list