Skip to content

Commit eb11777

Browse files
document NodePrinter
1 parent 7aa7100 commit eb11777

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/swift/Demangling/Demangle.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,14 @@ std::string mangledNameForTypeMetadataAccessor(
845845
llvm::StringRef moduleName, llvm::StringRef typeName, Node::Kind typeKind,
846846
Mangle::ManglingFlavor Flavor = Mangle::ManglingFlavor::Default);
847847

848+
/// Base class for printing a Swift demangled node tree.
849+
///
850+
/// NodePrinter is used to convert demangled Swift symbol nodes into
851+
/// human-readable string representations. It handles formatting, indentation,
852+
/// and Swift-specific syntax.
853+
///
854+
/// The virtual methods in this class are meant to be overriden to allow external
855+
/// consumers (e.g lldb) to track the ranges of components of the demangled name.
848856
class NodePrinter {
849857
protected:
850858
DemanglerPrinter Printer;

0 commit comments

Comments
 (0)