llvm-project/clang/test/Parser
Aaron Ballman b904e68f13 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
2023-03-21 12:49:45 -04:00
..
access-spec-attrs.cpp
altivec-bool-128.c
altivec-csk-bool.c
altivec-non-type-vector.c
altivec-template-vector.cpp
altivec-typedef-vector.c
altivec-zvector-bool.c
altivec.c
annotation-token-in-lexed-body.cpp
argument_qualified.c
argument_redef.c
argument_scope.c
arm-windows-calling-convention-handling.c
asm-constraints-pr7869.c
asm-goto.c
asm-goto.cpp
asm-qualifiers.c
asm.c
asm.cpp
atomic.c
attr-availability-xcore.c
attr-availability.c
attr-external-source-symbol-cxx11.cpp
attr-external-source-symbol.m
attr-order.cpp
attributes.c
attributes.mm
backtrack-crash.cpp
backtrack-off-by-one.cpp
bad-control.c
block-block-storageclass.c
block-pointer-decl.c
bracket-crash.cpp
brackets.c
brackets.cpp
builtin_classify_type.c
builtin_source_location.c
builtin_types_compatible.c
c-namespace.c
c1x-alignas.c
c1x-generic-selection.c
c2x-attributes.c
c2x-attributes.m
c2x-func-prototype.c
c2x-label.c
c2x-typeof-ext-warns.c
c2x-typeof.c
c11-noreturn.c
c99.c
captured-statements.c
char-literal-printing.c
check_cast.c
check-objc2-syntax-1.m
check-syntax-1.m
colon-colon-parentheses.cpp
completely-empty-header-file.h
compound_literal.c
compound-token-split.cpp
CompoundStmtScope.c
control-scope.c
crash-report.c
cuda-check-input-kind-assoc.cuh
cuda-force-host-device-templates.cu
cuda-force-host-device.cu
cuda-kernel-call-c++11.cu
cuda-kernel-call.cu
cxx-altivec-bool-128.cpp
cxx-altivec.cpp
cxx-ambig-decl-expr-xfail.cpp
cxx-ambig-decl-expr.cpp
cxx-ambig-init-templ.cpp
cxx-ambig-paren-expr-asan.cpp
cxx-ambig-paren-expr.cpp
cxx-attributes.cpp
cxx-bool.cpp
cxx-casting.cpp
cxx-class-template-specialization.cpp
cxx-class.cpp
cxx-concept-declaration.cpp
cxx-concepts-ambig-constraint-expr.cpp
cxx-concepts-requires-clause.cpp
cxx-condition.cpp
cxx-decl.cpp
cxx-default-args.cpp
cxx-default-delete.cpp
cxx-ext-delete-default.cpp
cxx-extern-c-array.cpp
cxx-extra-semi.cpp
cxx-extra-virtual-specifiers.cpp
cxx-friend.cpp
cxx-in-c.c
cxx-invalid-for-range.cpp
cxx-invalid-function-decl.cpp
cxx-keyword-identifiers.cpp
cxx-member-crash.cpp
cxx-member-init-missing-paren-crash.cpp
cxx-member-initializers.cpp
cxx-modules-interface.cppm
cxx-namespace-alias.cpp
cxx-reference.cpp
cxx-stmt.cpp
cxx-template-argument.cpp
cxx-template-decl.cpp
cxx-throw.cpp
cxx-typeid.cpp
cxx-typeof.cpp
cxx-undeclared-identifier.cpp
cxx-using-declaration.cpp
cxx-using-directive.cpp
cxx-variadic-func.cpp
cxx1z-attributes.cpp
cxx1z-class-template-argument-deduction.cpp
cxx1z-constexpr-lambdas.cpp
cxx1z-decomposition.cpp
cxx1z-fold-expressions.cpp
cxx1z-init-statement.cpp
cxx1z-nested-namespace-definition.cpp
cxx1z-using-declaration.cpp
cxx2a-abbreviated-templates.cpp
cxx2a-bitfield-init.cpp
cxx2a-concept-declaration.cpp
cxx2a-concepts-requires-expr.cpp
cxx2a-constrained-template-param-with-partial-id.cpp
cxx2a-constrained-template-param.cpp
cxx2a-designated-init.cpp
cxx2a-init-statement.cpp
cxx2a-inline-nested-namespace-definition.cpp
cxx2a-placeholder-type-constraint.cpp
cxx2a-spaceship.cpp
cxx2a-template-lambdas.cpp
cxx2b-auto-x.cpp
cxx2b-init-statement.cpp
cxx2b-label.cpp
cxx2b-lambdas-ext-warns.cpp No longer issue static lambda pedantic warning for pre-c++2b compat 2023-03-21 12:49:45 -04:00
cxx2b-lambdas.cpp
cxx2b-subscript.cpp
cxx11-base-spec-attributes.cpp
cxx11-brace-initializers.cpp
cxx11-stmt-attributes.cpp
cxx11-templates.cpp
cxx11-type-specifier.cpp
cxx11-user-defined-literals.cpp
cxx20-coroutines.cpp
cxx20-using-enum.cpp
cxx98-enum.cpp
cxx0x-ambig.cpp
cxx0x-attributes.cpp
cxx0x-condition.cpp
cxx0x-decl.cpp
cxx0x-for-range.cpp
cxx0x-in-cxx98.cpp
cxx0x-lambda-expressions.cpp
cxx0x-literal-operators.cpp
cxx0x-member-initializers.cpp
cxx0x-override-control-keywords.cpp
cxx0x-rvalue-reference.cpp
debugger-import-module.m
declarators.c
declspec-recovery.c
declspec-supported.c
decomposed-condition.cpp
DelayedTemplateParsing.cpp
designator.c
diag-crash.c
editor-placeholder-recovery.cpp
empty-translation-unit.c
encode.m
enhanced-proto-1.m
eof.cpp
eof2.cpp
explicit-bool.cpp
expressions.c
expressions.cpp
expressions.m
ext-int.cpp
extension.c
extra-semi-resulting-in-nullstmt-in-init-statement.cpp
extra-semi-resulting-in-nullstmt.cpp
extra-semi.cpp
for.cpp
fp-floatcontrol-syntax.cpp
function-decls.c
gcc-__final-compatibility.cpp
gcc-for-loop-init-compatibility.c
goto.c
if-scope-c90.c
if-scope-c99.c
implicit-casts.c
knr_parameter_attributes.c
lambda-attr.cu
lambda-misplaced-capture-default.cpp
lax-conv.cpp
matrix-type-disabled.c
max-tokens.cpp
message-expr-alt-op.mm
method-def-in-class.m
method-prototype-1.m
MicrosoftExtensions.c
MicrosoftExtensions.cpp
MicrosoftExtensionsInlineAsm.c
missing-closing-rbrace.m
missing-end-2.m
missing-end-3.m
missing-end-4.m
missing-end.m
missing-selector-name.mm
ms-anachronism.c
ms-if-exists.c
ms-if-exists.cpp
ms-inline-asm-nested-braces.c
ms-inline-asm.c
ms-seh.c
ms-square-bracket-attributes.mm
namelookup-bug-1.c
namelookup-bug-2.c
namespace-alias-attr.cpp
namespace-attributes.cpp
namespaces.cpp
nested_blocks_overflow.cpp
nested_function_prototype_overflow.cpp
nested_lambda_overflow.cpp
no-gnu-inline-asm.c
nullability.c
objc-alias-printing.m
objc-at-directive-fixit.m
objc-at-implementation-eof-crash.m
objc-at-interface-eof-crash.m
objc-attr.m
objc-available.m
objc-boxing.m
objc-category-neg-1.m
objc-class-property.m
objc-cxx-keyword-identifiers.mm
objc-diag-width.mm
objc-error-qualified-implementation.m
objc-forcollection-1.m
objc-forcollection-neg-2.m
objc-forcollection-neg.m
objc-foreach-syntax.m
objc-implementation-attrs.m
objc-init.m
objc-interfaces.m
objc-messaging-1.m
objc-messaging-neg-1.m
objc-missing-impl.m
objc-property-syntax.m
objc-quirks.m
objc-recover.mm
objc-static-assert.m
objc-static-assert.mm
objc-synthesized-recover.m
objc-try-catch-1.m
objc-type-printing.m
objcbridge-related-attribute.m
objcxx-at.mm
objcxx-enum.mm
objcxx-lambda-expressions-neg.mm
objcxx11-attributes.mm
objcxx11-initialized-temps.mm
objcxx11-invalid-lambda.cpp
objcxx11-messaging-and-lambda.mm
objcxx11-protocol-in-template.mm
objcxx11-user-defined-literal.mm
objcxx14-protocol-in-template.mm
objcxx0x-lambda-expressions.mm
offsetof.c
opencl-astype.cl
opencl-atomics-cl20.cl
opencl-cl20.cl
opencl-cxx-keywords.cl
opencl-cxx-virtual.cl
opencl-image-access.cl
opencl-kernel.cl
opencl-keywords.cl
opencl-pragma.cl
opencl-storage-class.cl
opencl-unroll-hint.cl
p10-vector-bool-128.c
parenthesis-balance.cpp
parmvardecl_conversion.c
parser_overflow.c
placeholder-recovery.m
pointer_promotion.c
pointer-arithmetic.c
PR11000.cpp
PR21872.cpp
pragma-attribute-context.cpp
pragma-attribute-declspec.cpp
pragma-attribute.cpp
pragma-fenv_access-ms.c
pragma-fenv_access.c
pragma-fenv_round.c
pragma-fp-contract.c
pragma-fp-contract.cpp
pragma-fp-warn.c
pragma-fp.cpp
pragma-loop-safety.cpp
pragma-loop.cpp
pragma-optimize-diagnostics.cpp
pragma-options.c
pragma-options.cpp
pragma-pack.c
pragma-pipeline.cpp
pragma-unroll-and-jam.cpp
pragma-unroll.cpp
pragma-visibility.c
pragma-visibility2.c
pragma-weak.c
promote_types_in_proto.c
recovery.c
recovery.cpp
recovery.m
recursion-limits.cpp
selector-1.m
sizeof-missing-parens.c
skip-function-bodies.h
skip-function-bodies.mm
slh-asm-goto-no-warn.cpp
slh-asm-goto.cpp
statements.c
static_assert.c
stmt-attributes.c
stmt-attributes.cpp
stmt-attributes.m
struct-recursion.c
switch-recovery.cpp
switch-typo-correction.cpp
top-level-semi-cxx0x.cpp
traditional_arg_scope.c
typeof.c
types.c
using-if-exists-attr.cpp
using-template.cpp
vector-cast-define.cl
vsx.c
warn-cuda-compat.cu
warn-dangling-else.cpp
warn-misleading-indentation-fix.cpp
warn-misleading-indentation.cpp
warn-semicolon-before-method-body.m
wasm-funcref.c
while-loop-outside-function.c
while-loop-outside-function.cpp
x64-windows-calling-convention-handling.c