[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:21 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;
----------------
Neil-N4 wrote:
print() is now virtual in the base. switch/cast dispatch removed
https://github.com/llvm/llvm-project/pull/205609
More information about the cfe-commits
mailing list