[clang] [Clang][Sema]: Diagnose lambda to bool implicit casts (PR #83152)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 28 06:50:21 PST 2024


================
@@ -287,6 +287,11 @@ namespace dr1837 { // dr1837: 3.3
       };
     };
   };
+  /* since-cxx11-warning at -6{{address of function '[] {
----------------
Endilll wrote:

Can you convert this to use a marker? We don't want readers to count relative offsets. In other words, it should read `since-cxx11-warning@#dr1837-lambda {{address of function ...`

You can see an example in the test for 1890.

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


More information about the cfe-commits mailing list