llvm/clang/test/Parser
Aaron Ballman 25098736c1 Use functions with prototypes when appropriate; NFC
A significant number of our tests in C accidentally use functions
without prototypes. This patch converts the function signatures to have
a prototype for the situations where the test is not specific to K&R C
declarations. e.g.,

  void func();

becomes

  void func(void);

This is the fifth batch of tests being updated (there are a significant
number of other tests left to be updated).

Note, the behavior of -ast-print is broken. It prints functions with a
prototype (void) as if they have no prototype () in C. Some tests need
to disable strict prototype checking when recompiling the results of an
-ast-print invocation.
2022-02-09 09:11:49 -05:00
..
access-spec-attrs.cpp
altivec-bool-128.c
altivec-csk-bool.c
altivec-non-type-vector.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
altivec-template-vector.cpp
altivec-typedef-vector.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
altivec-zvector-bool.c
altivec.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
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 Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
asm.cpp
atomic.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
attr-availability-xcore.c
attr-availability.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
attr-external-source-symbol-cxx11.cpp
attr-external-source-symbol.m Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
attr-order.cpp
attributes.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
attributes.mm
backtrack-crash.cpp
backtrack-off-by-one.cpp
bad-control.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
block-block-storageclass.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
block-pointer-decl.c
bracket-crash.cpp
brackets.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
brackets.cpp
builtin_classify_type.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
builtin_source_location.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
builtin_types_compatible.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
c-namespace.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
c1x-alignas.c
c1x-generic-selection.c
c2x-attributes.c
c2x-attributes.m
c11-noreturn.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
c99.c
captured-statements.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
char-literal-printing.c
check-objc2-syntax-1.m
check-syntax-1.m
check_cast.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
colon-colon-parentheses.cpp
completely-empty-header-file.h
compound-token-split.cpp
compound_literal.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
CompoundStmtScope.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
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 [Parse] Improve diagnostic and recovery when there is an extra override in the outline method definition. 2021-10-18 10:00:21 +02:00
cxx-friend.cpp
cxx-in-c.c
cxx-invalid-for-range.cpp
cxx-invalid-function-decl.cpp
cxx-keyword-identifiers.cpp [clang] Fix crash on broken parameter declarators 2021-11-26 10:56:54 +01:00
cxx-member-crash.cpp
cxx-member-init-missing-paren-crash.cpp
cxx-member-initializers.cpp
cxx-modules-interface.cppm [NFC] Format .cppm files in tests 2021-12-13 23:32:25 +08:00
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
cxx0x-ambig.cpp
cxx0x-attributes.cpp Allow parameter pack expansions and initializer lists in annotate attribute 2022-02-08 13:38:07 -05:00
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
cxx1z-attributes.cpp
cxx1z-class-template-argument-deduction.cpp Fix crash on invalid code involving late parsed inline methods 2021-12-16 07:58:51 -05:00
cxx1z-constexpr-lambdas.cpp
cxx1z-coroutines.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 Fix a failed assertion on an invalid typename requirement 2022-01-18 11:59:08 -05:00
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-init-statement.cpp
cxx2b-lambdas.cpp
cxx2b-subscript.cpp [C++2b] Implement multidimentional subscript operator 2022-02-08 12:10:47 -05:00
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
cxx98-enum.cpp
debugger-import-module.m Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
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 Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
expressions.cpp
expressions.m Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
ext-int.cpp Introduce _BitInt, deprecate _ExtInt 2021-12-06 12:52:01 -05:00
extension.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
extra-semi-resulting-in-nullstmt-in-init-statement.cpp
extra-semi-resulting-in-nullstmt.cpp [NFC][clang] Fix comments. 2022-01-05 14:49:03 +08:00
extra-semi.cpp
for.cpp
fp-floatcontrol-syntax.cpp
function-decls.c
gcc-__final-compatibility.cpp
gcc-for-loop-init-compatibility.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
goto.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
if-scope-c90.c
if-scope-c99.c
implicit-casts.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
knr_parameter_attributes.c
lambda-attr.cu [CUDA][NFC] Fix inexact warning message about lambdas 2021-10-27 01:28:35 +00:00
lambda-misplaced-capture-default.cpp
matrix-type-disabled.c
max-tokens.cpp
message-expr-alt-op.mm
method-def-in-class.m
method-prototype-1.m
MicrosoftExtensions.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
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 Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
ms-if-exists.cpp
ms-inline-asm-nested-braces.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
ms-inline-asm.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
ms-seh.c Use functions with prototypes when appropriate; NFC 2022-02-07 15:29:36 -05:00
ms-square-bracket-attributes.mm
namelookup-bug-1.c
namelookup-bug-2.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
namespace-alias-attr.cpp
namespaces.cpp
nested_blocks_overflow.cpp
nested_function_prototype_overflow.cpp
nested_lambda_overflow.cpp
no-gnu-inline-asm.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
nullability.c
objc-alias-printing.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-at-directive-fixit.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-at-implementation-eof-crash.m
objc-at-interface-eof-crash.m
objc-attr.m
objc-available.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-boxing.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-category-neg-1.m
objc-class-property.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
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 Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-implementation-attrs.m
objc-init.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-interfaces.m
objc-messaging-1.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-messaging-neg-1.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
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 Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objc-type-printing.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
objcbridge-related-attribute.m
objcxx-at.mm
objcxx-enum.mm
objcxx-lambda-expressions-neg.mm
objcxx0x-lambda-expressions.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
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-arithmetic.c
pointer_promotion.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
PR11000.cpp
PR21872.cpp
pragma-attribute-context.cpp
pragma-attribute-declspec.cpp
pragma-attribute.cpp Improve docs & test for #pragma clang attribute's any clause; NFC 2021-11-17 08:24:26 -05:00
pragma-fenv_access-ms.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
pragma-fenv_access.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
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 Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
recovery.cpp
recovery.m
recursion-limits.cpp
selector-1.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
sizeof-missing-parens.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
skip-function-bodies.h
skip-function-bodies.mm
slh-asm-goto-no-warn.cpp
slh-asm-goto.cpp
statements.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
static_assert.c
stmt-attributes.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
stmt-attributes.cpp
stmt-attributes.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
struct-recursion.c
switch-recovery.cpp
switch-typo-correction.cpp
top-level-semi-cxx0x.cpp
traditional_arg_scope.c
typeof.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
types.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
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 Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
warn-semicolon-before-method-body.m
x64-windows-calling-convention-handling.c