[clang-tools-extra] [clang-doc] Add Markdown AST node type definitions (PR #205609)
Erick Velez via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 29 20:29:54 PDT 2026
================
@@ -0,0 +1,89 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "Markdown.h"
+
+namespace clang::doc::markdown {
+
+LLVM_DUMP_METHOD void InlineNode::dump() const { print(llvm::errs()); }
+
+void TextNode::print(llvm::raw_ostream &OS) const {
----------------
evelez7 wrote:
I think think this is getting out of scope but have you considered the indentation of these prints? If you've ever dumped the clang AST it has some nice indentation and formatting. I just realized these will all get dumped straight down. Hard to read.
A TODO will do fine for now.
https://github.com/llvm/llvm-project/pull/205609
More information about the cfe-commits
mailing list