[llvm] [Support] Use an inherited constructor in DOTGraphTraits (NFC) (PR #164056)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 17 23:54:27 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/164056
This patch simplifies DOTGraphTraits with an inherited constructor.
This way, we do not need to repeat the constructor signature or
manually forward constructor arguments.
>From 65200778dc2ba0f23ee2005742904bfc1f039bc8 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sun, 12 Oct 2025 21:48:06 -0700
Subject: [PATCH] [Support] Use an inherited constructor in DOTGraphTraits
(NFC)
This patch simplifies DOTGraphTraits with an inherited constructor.
This way, we do not need to repeat the constructor signature or
manually forward constructor arguments.
---
llvm/include/llvm/Support/DOTGraphTraits.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/include/llvm/Support/DOTGraphTraits.h b/llvm/include/llvm/Support/DOTGraphTraits.h
index ffa9abe328c83..bf30aa4df9fab 100644
--- a/llvm/include/llvm/Support/DOTGraphTraits.h
+++ b/llvm/include/llvm/Support/DOTGraphTraits.h
@@ -164,7 +164,7 @@ struct DefaultDOTGraphTraits {
///
template <typename Ty>
struct DOTGraphTraits : public DefaultDOTGraphTraits {
- DOTGraphTraits (bool simple=false) : DefaultDOTGraphTraits (simple) {}
+ using DefaultDOTGraphTraits::DefaultDOTGraphTraits;
};
} // End llvm namespace
More information about the llvm-commits
mailing list