[all-commits] [llvm/llvm-project] e9e55a: Use functions with prototypes when appropriate; NFC
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Thu Feb 10 13:06:20 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e9e55acd1ba33311e13e690f8db129b3a624dbd0
https://github.com/llvm/llvm-project/commit/e9e55acd1ba33311e13e690f8db129b3a624dbd0
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2022-02-10 (Thu, 10 Feb 2022)
Changed paths:
M clang/test/Modules/Inputs/AutolinkTBD.framework/Headers/AutolinkTBD.h
M clang/test/Modules/Inputs/at-import-in-framework-header/A.framework/Headers/A.h
M clang/test/Modules/Inputs/config.h
M clang/test/Modules/Inputs/double-quotes/A.framework/Headers/A.h
M clang/test/Modules/Inputs/framework-public-includes-private/A.framework/Headers/A.h
M clang/test/Modules/Inputs/pch-used.h
M clang/test/Modules/Inputs/subdir/subdir.h
M clang/test/Modules/Inputs/subdirectory-module-maps-working-dir/subdir_module/h1.h
M clang/test/Modules/Inputs/unnecessary-module-map-parsing/a1.h
M clang/test/Modules/at-import-in-framework-header.m
M clang/test/Modules/auto-module-import.m
M clang/test/Modules/autolink.m
M clang/test/Modules/autolinkTBD.m
M clang/test/Modules/builtins.m
M clang/test/Modules/config_macros.m
M clang/test/Modules/cstd.m
M clang/test/Modules/decldef.m
M clang/test/Modules/diagnose-missing-import.m
M clang/test/Modules/double-quotes.m
M clang/test/Modules/extern_c.cpp
M clang/test/Modules/framework-public-includes-private.m
M clang/test/Modules/global_index.m
M clang/test/Modules/import-decl.cpp
M clang/test/Modules/include-relative.c
M clang/test/Modules/inferred-submodules.m
M clang/test/Modules/macros.c
M clang/test/Modules/macros2.c
M clang/test/Modules/merge-fn-prototype-tags.c
M clang/test/Modules/missing-submodule.m
M clang/test/Modules/module-imported-by-pch-with-modulemap.m
M clang/test/Modules/module-name-private.m
M clang/test/Modules/modulemap-locations.m
M clang/test/Modules/non-ambiguous-enum.m
M clang/test/Modules/normal-module-map.cpp
M clang/test/Modules/objc-initializer.m
M clang/test/Modules/on-demand-build.m
M clang/test/Modules/on-demand-macros.m
M clang/test/Modules/pch-used.m
M clang/test/Modules/prebuilt-implicit-modules.m
M clang/test/Modules/prebuilt-module.m
M clang/test/Modules/redecl-merge.m
M clang/test/Modules/renamed.m
M clang/test/Modules/stddef.m
M clang/test/Modules/subdirectory-module-maps-working-dir.m
M clang/test/Modules/subframeworks.m
M clang/test/Modules/submodules.m
M clang/test/Modules/typo.m
M clang/test/Modules/working-dir-flag.m
M clang/test/OpenMP/PR44893.c
M clang/test/OpenMP/atomic_capture_codegen.cpp
M clang/test/OpenMP/atomic_messages.c
M clang/test/OpenMP/atomic_read_codegen.c
M clang/test/OpenMP/atomic_update_codegen.cpp
M clang/test/OpenMP/atomic_write_codegen.c
M clang/test/OpenMP/begin_declare_variant_range_withouth_end.c
M clang/test/OpenMP/declare_mapper_ast_print.c
M clang/test/OpenMP/declare_reduction_ast_print.c
M clang/test/OpenMP/declare_reduction_codegen.c
M clang/test/OpenMP/declare_variant_ast_x86_64.c
M clang/test/OpenMP/declare_variant_construct_codegen_1.c
M clang/test/OpenMP/declare_variant_messages.c
M clang/test/OpenMP/depend_iterator_bug.c
M clang/test/OpenMP/distribute_parallel_for_simd_misc_messages.c
M clang/test/OpenMP/distribute_simd_misc_messages.c
M clang/test/OpenMP/fopenmp-extensions.c
M clang/test/OpenMP/for_misc_messages.c
M clang/test/OpenMP/for_simd_misc_messages.c
M clang/test/OpenMP/master_taskloop_misc_messages.c
M clang/test/OpenMP/master_taskloop_simd_misc_messages.c
M clang/test/OpenMP/metadirective_device_kind_codegen.c
M clang/test/OpenMP/metadirective_implementation_codegen.c
M clang/test/OpenMP/nvptx_target_printf_codegen.c
M clang/test/OpenMP/openmp_common.c
M clang/test/OpenMP/openmp_offload_registration.cpp
M clang/test/OpenMP/ordered_doacross_codegen.c
M clang/test/OpenMP/parallel_for_misc_messages.c
M clang/test/OpenMP/parallel_for_simd_misc_messages.c
M clang/test/OpenMP/parallel_master_taskloop_misc_messages.c
M clang/test/OpenMP/parallel_master_taskloop_simd_misc_messages.c
M clang/test/OpenMP/parallel_sections_misc_messages.c
M clang/test/OpenMP/sections_misc_messages.c
M clang/test/OpenMP/simd_misc_messages.c
M clang/test/OpenMP/single_misc_messages.c
M clang/test/OpenMP/target_data_messages.c
M clang/test/OpenMP/target_parallel_for_misc_messages.c
M clang/test/OpenMP/target_parallel_for_simd_misc_messages.c
M clang/test/OpenMP/target_simd_misc_messages.c
M clang/test/OpenMP/target_teams_distribute_misc_messages.c
M clang/test/OpenMP/target_teams_distribute_parallel_for_misc_messages.c
M clang/test/OpenMP/target_teams_distribute_parallel_for_simd_misc_messages.c
M clang/test/OpenMP/target_teams_distribute_simd_misc_messages.c
M clang/test/OpenMP/target_uses_allocators.c
M clang/test/OpenMP/task_codegen.c
M clang/test/OpenMP/task_target_device_codegen.c
M clang/test/OpenMP/taskloop_misc_messages.c
M clang/test/OpenMP/taskloop_simd_misc_messages.c
M clang/test/OpenMP/vla_crash.c
M clang/test/PCH/Inputs/arc.h
M clang/test/PCH/Inputs/chain-decls1.h
M clang/test/PCH/Inputs/chain-decls2.h
M clang/test/PCH/Inputs/chain-macro-override1.h
M clang/test/PCH/Inputs/chain-macro-override2.h
M clang/test/PCH/Inputs/chain-macro1.h
M clang/test/PCH/Inputs/chain-macro2.h
M clang/test/PCH/Inputs/chain-selectors1.h
M clang/test/PCH/Inputs/chain-selectors2.h
M clang/test/PCH/asm.h
M clang/test/PCH/attrs-PR8406.c
M clang/test/PCH/attrs.c
M clang/test/PCH/builtins.c
M clang/test/PCH/chain-decls.c
M clang/test/PCH/chain-macro-override.c
M clang/test/PCH/chain-selectors.m
M clang/test/PCH/debug-info-limited-struct.h
Log Message:
-----------
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 seventh batch of tests being updated (there are a
significant number of other tests left to be updated).
More information about the All-commits
mailing list