No longer issue static lambda pedantic warning for pre-c++2b compat
authorAaron Ballman <aaron@aaronballman.com>
Tue, 21 Mar 2023 16:48:13 +0000 (12:48 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 21 Mar 2023 16:49:45 +0000 (12:49 -0400)
commitb904e68f13ba7d4f4aa86a3495e2441c99247671
tree98dac44e4444b13a74611e5946f7b05e58c02bbf
parent24caf0196d03858bd9fe90d14133fb69c8cea444
No longer issue static lambda pedantic warning for pre-c++2b compat

We were accidentally issuing "static lambdas are incompatible with C++
standards before C++2b" with -pedantic because it was an ExtWarn
diagnostic rather than a Warning. This corrects the diagnostic category
and adds some test coverage.

Fixes #61582
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/test/Parser/cxx2b-lambdas-ext-warns.cpp