[all-commits] [llvm/llvm-project] ed509f: Use functions with prototypes when appropriate; NFC
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Tue Feb 15 06:28:17 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ed509fe296375eb7c01d3d9aeec15cc784695210
https://github.com/llvm/llvm-project/commit/ed509fe296375eb7c01d3d9aeec15cc784695210
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2022-02-15 (Tue, 15 Feb 2022)
Changed paths:
M clang/test/CodeGen/Inputs/code-coverage-filter1.h
M clang/test/CodeGen/Inputs/code-coverage-filter2.h
M clang/test/CodeGen/Inputs/debug-info-embed-source.c
M clang/test/CodeGen/_Bool-conversion.c
M clang/test/CodeGen/aarch64-args-hfa.c
M clang/test/CodeGen/aarch64-args.cpp
M clang/test/CodeGen/aarch64-byval-temp.c
M clang/test/CodeGen/aarch64-inline-asm.c
M clang/test/CodeGen/aarch64-sve-inline-asm.c
M clang/test/CodeGen/aarch64-type-sizes.c
M clang/test/CodeGen/aarch64-varargs.c
M clang/test/CodeGen/address-space-avr.c
M clang/test/CodeGen/address-space.c
M clang/test/CodeGen/addrsig.c
M clang/test/CodeGen/aggregate-assign-call.c
M clang/test/CodeGen/align-local.c
M clang/test/CodeGen/align-loops.c
M clang/test/CodeGen/alignment.c
M clang/test/CodeGen/alignof.c
M clang/test/CodeGen/alloc-size.c
M clang/test/CodeGen/always-inline.c
M clang/test/CodeGen/arc/arguments.c
M clang/test/CodeGen/arc/struct-align.c
M clang/test/CodeGen/arm-be-result-return.c
M clang/test/CodeGen/arm-bitfield-alignment.c
M clang/test/CodeGen/arm-cmse-attr.c
M clang/test/CodeGen/arm-fp16-arguments.c
M clang/test/CodeGen/arm-interrupt-attr.c
M clang/test/CodeGen/arm-sve-vector-bits-vscale-range.c
M clang/test/CodeGen/arm-swiftcall.c
M clang/test/CodeGen/arm-target-attr.c
M clang/test/CodeGen/arm-varargs.c
M clang/test/CodeGen/arm64-microsoft-intrinsics.c
M clang/test/CodeGen/array.c
M clang/test/CodeGen/artificial.c
M clang/test/CodeGen/asan-strings.c
M clang/test/CodeGen/asm-call-func.c
M clang/test/CodeGen/asm-inout.c
M clang/test/CodeGen/asm-reg-var-local.c
M clang/test/CodeGen/asm-variable.c
M clang/test/CodeGen/asm.c
M clang/test/CodeGen/asm_64.c
M clang/test/CodeGen/asm_arm64.c
M clang/test/CodeGen/assign.c
M clang/test/CodeGen/assume-aligned-and-alloc-align-attributes.c
M clang/test/CodeGen/atomic-arm64.c
M clang/test/CodeGen/atomic-ops.c
M clang/test/CodeGen/atomic_ops.c
M clang/test/CodeGen/attr-availability.c
M clang/test/CodeGen/attr-cleanup.c
M clang/test/CodeGen/attr-coldhot.c
M clang/test/CodeGen/attr-cpuspecific.c
M clang/test/CodeGen/attr-disable-sanitizer-instrumentation.c
M clang/test/CodeGen/attr-disable-tail-calls.c
M clang/test/CodeGen/attr-ifunc.c
M clang/test/CodeGen/attr-leaf.c
M clang/test/CodeGen/attr-mode-enums.c
M clang/test/CodeGen/attr-mode-vector-types.c
M clang/test/CodeGen/attr-mustprogress.c
M clang/test/CodeGen/attr-naked.c
M clang/test/CodeGen/attr-nodebug.c
M clang/test/CodeGen/attr-nodebug2.c
M clang/test/CodeGen/attr-noinline.c
M clang/test/CodeGen/attr-noreturn.c
M clang/test/CodeGen/attr-optnone.c
M clang/test/CodeGen/attr-retain.c
M clang/test/CodeGen/attr-speculative-load-hardening.c
M clang/test/CodeGen/attr-target-clones.c
M clang/test/CodeGen/attr-target-general-regs-only-x86.c
M clang/test/CodeGen/attr-target-mv-func-ptrs.c
M clang/test/CodeGen/attr-target-mv-va-args.c
M clang/test/CodeGen/attr-target-mv.c
M clang/test/CodeGen/attr-target-x86.c
M clang/test/CodeGen/attr-used.c
M clang/test/CodeGen/attribute_constructor.c
M clang/test/CodeGen/attributes.c
M clang/test/CodeGen/available-externally-suppress.c
M clang/test/CodeGen/avr-unsupported-inline-asm-constraints.c
M clang/test/CodeGen/avr/functionptr-addrspace.c
M clang/test/CodeGen/big-atomic-ops.c
M clang/test/CodeGen/bitfield-2.c
M clang/test/CodeGen/bitfield-assign.c
M clang/test/CodeGen/bitfield-init.c
M clang/test/CodeGen/block-3.c
M clang/test/CodeGen/block-byref-aggr.c
M clang/test/CodeGen/block-copy.c
M clang/test/CodeGen/block-with-perdefinedexpr.c
M clang/test/CodeGen/blocks-1.c
M clang/test/CodeGen/blocks-aligned-byref-variable.c
M clang/test/CodeGen/blocks-seq.c
M clang/test/CodeGen/blocks.c
M clang/test/CodeGen/bounds-checking.c
M clang/test/CodeGen/branch-on-bool.c
M clang/test/CodeGen/branch-target-layout.c
M clang/test/CodeGen/builtin-assume-aligned.c
M clang/test/CodeGen/builtin-constant-p.c
M clang/test/CodeGen/builtin-cpu-is.c
M clang/test/CodeGen/builtin-cpu-supports.c
M clang/test/CodeGen/builtin-expect.c
M clang/test/CodeGen/builtin-memfns.c
M clang/test/CodeGen/builtin-sponentry.c
M clang/test/CodeGen/builtin-unpredictable.c
M clang/test/CodeGen/builtin-unwind-init.c
M clang/test/CodeGen/builtins-arm-exclusive.c
M clang/test/CodeGen/builtins-arm.c
M clang/test/CodeGen/builtins-arm64.c
M clang/test/CodeGen/builtins-riscv.c
M clang/test/CodeGen/builtins-wasm.c
M clang/test/CodeGen/builtins-x86.c
M clang/test/CodeGen/builtins.c
M clang/test/CodeGen/c-strings.c
M clang/test/CodeGen/call.c
M clang/test/CodeGen/callback_annotated.c
M clang/test/CodeGen/calling-conv-ignored.c
M clang/test/CodeGen/capture-complex-expr-in-block.c
M clang/test/CodeGen/captured-statements-nested.c
M clang/test/CodeGen/captured-statements.c
M clang/test/CodeGen/catch-implicit-integer-sign-changes-true-negatives.c
M clang/test/CodeGen/catch-nullptr-and-nonzero-offset-in-offsetof-idiom.c
M clang/test/CodeGen/catch-nullptr-and-nonzero-offset.c
M clang/test/CodeGen/catch-undef-behavior.c
M clang/test/CodeGen/cfguardtable.c
M clang/test/CodeGen/cfi-check-fail.c
M clang/test/CodeGen/cfi-check-fail2.c
M clang/test/CodeGen/cfi-icall-canonical-jump-tables.c
M clang/test/CodeGen/cfstring.c
M clang/test/CodeGen/cfstring2.c
M clang/test/CodeGen/char-literal.c
M clang/test/CodeGen/cleanup-destslot-simple.c
M clang/test/CodeGen/clear_cache.c
M clang/test/CodeGen/cmse-clear-arg.c
M clang/test/CodeGen/cmse-clear-return.c
M clang/test/CodeGen/code-coverage-filter.c
M clang/test/CodeGen/code-coverage-tsan.c
M clang/test/CodeGen/coff-aarch64-type-sizes.c
M clang/test/CodeGen/complex-builtins-3.c
M clang/test/CodeGen/complex-strictfp.c
M clang/test/CodeGen/complex.c
M clang/test/CodeGen/compound-assign-overflow.c
M clang/test/CodeGen/compound-literal.c
M clang/test/CodeGen/compound.c
M clang/test/CodeGen/conditional-gnu-ext.c
M clang/test/CodeGen/conditional.c
M clang/test/CodeGen/const-init.c
M clang/test/CodeGen/const-label-addr.c
M clang/test/CodeGen/const-unordered-compare.c
M clang/test/CodeGen/constantexpr-fneg.c
M clang/test/CodeGen/constructor-attribute.c
M clang/test/CodeGen/convergent-functions.cpp
M clang/test/CodeGen/coverage-compilation-dir.c
M clang/test/CodeGen/dbg-const-int128.c
M clang/test/CodeGen/debug-info-abspath.c
M clang/test/CodeGen/debug-info-block-decl.c
M clang/test/CodeGen/debug-info-block-expr.c
M clang/test/CodeGen/debug-info-block-vars.c
M clang/test/CodeGen/debug-info-block.c
M clang/test/CodeGen/debug-info-codeview-buildinfo.c
M clang/test/CodeGen/debug-info-codeview-heapallocsite.c
M clang/test/CodeGen/debug-info-crash.c
M clang/test/CodeGen/debug-info-embed-source.c
M clang/test/CodeGen/debug-info-extern-basic.c
M clang/test/CodeGen/debug-info-extern-callback.c
M clang/test/CodeGen/debug-info-extern-duplicate.c
M clang/test/CodeGen/debug-info-extern-multi.c
M clang/test/CodeGen/debug-info-extern-unused.c
M clang/test/CodeGen/debug-info-file-change.c
M clang/test/CodeGen/debug-info-gline-tables-only2.c
M clang/test/CodeGen/debug-info-global-constant.c
M clang/test/CodeGen/debug-info-line2.c
M clang/test/CodeGen/debug-info-names.c
M clang/test/CodeGen/debug-info-no-inline-line-tables.c
M clang/test/CodeGen/debug-info-ranges-base-address.c
M clang/test/CodeGen/debug-info-scope-file.c
M clang/test/CodeGen/debug-info-scope.c
M clang/test/CodeGen/debug-info-static-const-fp.c
M clang/test/CodeGen/debug-info-sysroot-sdk.c
M clang/test/CodeGen/debug-info.c
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 tenth 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