================
@@ -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;
----------------
ilovepi wrote:
Your other nodes inherit from this, right? I'd expect this to be a virtual
function that subclasses override. Then you don't need a switch case in the
base class that casts to its children.
https://github.com/llvm/llvm-project/pull/205609
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits