[clang] [clang] Add separate C++23 extension flag for attrs on lambda (PR #74553)

Ilya Biryukov via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 6 01:37:44 PST 2023


================
@@ -1126,6 +1126,8 @@ def FutureAttrs : DiagGroup<"future-attribute-extensions", [CXX14Attrs,
                                                             CXX17Attrs,
                                                             CXX20Attrs]>;
 
+def CXX23AttrsOnLambda : DiagGroup<"c++23-attrs-on-lambda">;
----------------
ilya-biryukov wrote:

Other warning flags spell `attribute` as a full word, I suggest we do the same here.\
Something like `c++23-lambda-attributes` looks like a good option.




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


More information about the cfe-commits mailing list