llvm-project/clang/test/CoverageMapping
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
..
Inputs
abspath.cpp Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
block-storage-starts-region.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
branch-constfolded.cpp
branch-logical-mixed.cpp
branch-macros.cpp
branch-mincounters.cpp
branch-templates.cpp
break.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
builtinmacro.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
casts.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
classtemplate.cpp Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
comment-in-macro.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
comment.cpp
continue.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
control-flow-macro.c
coroutine.cpp [Coroutines] [Frontend] Lookup in std namespace first 2021-11-04 11:53:47 +08:00
decl.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
default-method.cpp
empty-destructor.cpp
header.cpp
if.cpp [Coverage] Emit gap region after conditions when macro is present. 2021-02-18 11:41:04 -08:00
implicit-def-in-macro.m Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
include-macros.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
includehell.cpp
ir.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
label.cpp Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
lambda.cpp
logical.cpp
loopmacro.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
loops.cpp
macro-expansion.c
macro-expressions.cpp [Coverage] Emit gap region after conditions when macro is present. 2021-02-18 11:41:04 -08:00
macro-stringize-twice.cpp
macroception.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
macroparams.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
macroparams2.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
macros.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
macroscopes.cpp [Coverage] Emit gap region after conditions when macro is present. 2021-02-18 11:41:04 -08:00
md.cpp
moremacros.c [Coverage] Emit gap region after conditions when macro is present. 2021-02-18 11:41:04 -08:00
nestedclass.cpp
objc.m
openmp.c
pr32679.cpp
preprocessor.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
return.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
switch.cpp Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
switchmacro.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
system_macro.cpp
templates.cpp
terminate-statements.cpp Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
test.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
trycatch.cpp Revert "Revert "[Coverage] Emit gap region between statements if first statements contains terminate statements."" 2021-03-04 11:52:43 -08:00
trymacro.cpp
unreachable-macro.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
unused_function.cpp
unused_names.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00
while.c Use functions with prototypes when appropriate; NFC 2022-02-09 09:11:49 -05:00