Skip to content

Commit df6d5f2

Browse files
[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.
1 parent e3609ae commit df6d5f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Support/DOTGraphTraits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ struct DefaultDOTGraphTraits {
164164
///
165165
template <typename Ty>
166166
struct DOTGraphTraits : public DefaultDOTGraphTraits {
167-
DOTGraphTraits (bool simple=false) : DefaultDOTGraphTraits (simple) {}
167+
using DefaultDOTGraphTraits::DefaultDOTGraphTraits;
168168
};
169169

170170
} // End llvm namespace

0 commit comments

Comments
 (0)