================
@@ -0,0 +1,10 @@
+// RUN: %check_clang_tidy -std=c++20-or-later -expect-clang-tidy-error %s 
bugprone-std-namespace-modification %t
+
+template <class A, class B> struct O : A, B {};
+template <class T> void f() {
+  auto a = [](auto) {};
+  auto b = [](auto) -> decltype(({ })) {};
+  O(a, b)(T{});
----------------
zwuis wrote:

Further reduced:

```suggestion
  auto a = [] {};
  auto b = [] {};
  O(a, b)();
```


https://github.com/llvm/llvm-project/pull/214704
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to