[llvm] df6d5f2 - [Support] Use an inherited constructor in DOTGraphTraits (NFC) (#164056)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 18 10:17:17 PDT 2025
Author: Kazu Hirata
Date: 2025-10-18T10:17:13-07:00
New Revision: df6d5f207d853d18229159c1617de6cc92cf4dda
URL: https://github.com/llvm/llvm-project/commit/df6d5f207d853d18229159c1617de6cc92cf4dda
DIFF: https://github.com/llvm/llvm-project/commit/df6d5f207d853d18229159c1617de6cc92cf4dda.diff
LOG: [Support] Use an inherited constructor in DOTGraphTraits (NFC) (#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.
Added:
Modified:
llvm/include/llvm/Support/DOTGraphTraits.h
Removed:
################################################################################
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