[clang-tools-extra] [clang-tidy] Ignore deleted ctor in `bugprone-forwarding-reference-overload` (PR #88138)

Mike Weller via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 9 08:33:18 PDT 2024


================
@@ -251,3 +251,10 @@ class Test10 {
   Test10(T &&Item, E e)
       : e(e){}
 };
+
+// A deleted ctor cannot hide anything
+class Test11 {
+public:
+  template <typename T>
+  Test11(T&&) = delete;
----------------
MikeWeller wrote:

Although this is enough to trigger (or not after the fix) the issue, perhaps I should include a copy+move ctor below for clarity?

https://github.com/llvm/llvm-project/pull/88138


More information about the cfe-commits mailing list