[all-commits] [llvm/llvm-project] e765e0: Use functions with prototypes when appropriate; NFC
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Thu Feb 3 13:42:45 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e765e0bc8ed06ebb186a9905227273517f0b7240
https://github.com/llvm/llvm-project/commit/e765e0bc8ed06ebb186a9905227273517f0b7240
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2022-02-03 (Thu, 03 Feb 2022)
Changed paths:
M clang/test/Sema/2010-05-31-palignr.c
M clang/test/Sema/Float16.c
M clang/test/Sema/MicrosoftExtensions.c
M clang/test/Sema/PR28181.c
M clang/test/Sema/__try.c
M clang/test/Sema/aarch64-branch-protection-attr-err.c
M clang/test/Sema/aarch64-special-register.c
M clang/test/Sema/aarch64-sve-types.c
M clang/test/Sema/aarch64-tme-errors.c
M clang/test/Sema/aarch64-tme-tcancel-errors.c
M clang/test/Sema/address-packed.c
M clang/test/Sema/address_space_print_macro.c
M clang/test/Sema/address_spaces.c
M clang/test/Sema/alias-unused.c
M clang/test/Sema/align_value.c
M clang/test/Sema/alloc-align-attr.c
M clang/test/Sema/altivec-generic-overload.c
M clang/test/Sema/altivec-init.c
M clang/test/Sema/anonymous-struct-union.c
M clang/test/Sema/arm-branch-protection-attr-err.c
M clang/test/Sema/arm-branch-protection-attr-warn.c
M clang/test/Sema/arm-branch-protection.c
M clang/test/Sema/arm-cmse-no-diag.c
M clang/test/Sema/arm-interrupt-attr.c
M clang/test/Sema/arm-no-cmse.c
M clang/test/Sema/arm-special-register.c
M clang/test/Sema/arm64-inline-asm.c
M clang/test/Sema/array-bounds-ptr-arith.c
M clang/test/Sema/array-constraint.c
M clang/test/Sema/array-size-64.c
M clang/test/Sema/array-size.c
M clang/test/Sema/artificial.c
M clang/test/Sema/asm-label.c
M clang/test/Sema/asm.c
M clang/test/Sema/assign-null.c
M clang/test/Sema/assign.c
M clang/test/Sema/ast-print-x86.c
M clang/test/Sema/atomic-expr.c
M clang/test/Sema/atomic-implicit-seq_cst.c
M clang/test/Sema/atomic-ops.c
M clang/test/Sema/atomic-requires-library-error.c
M clang/test/Sema/atomic-type.c
M clang/test/Sema/attr-args.c
M clang/test/Sema/attr-assume.c
M clang/test/Sema/attr-availability-android.c
M clang/test/Sema/attr-availability-app-extensions.c
M clang/test/Sema/attr-availability-fuchsia.c
M clang/test/Sema/attr-availability-ios.c
M clang/test/Sema/attr-availability-iosmac-infer-from-macos.c
M clang/test/Sema/attr-availability-maccatalyst.c
M clang/test/Sema/attr-availability-macosx.c
M clang/test/Sema/attr-availability-square-brackets.c
M clang/test/Sema/attr-availability-tvos.c
M clang/test/Sema/attr-availability-watchos.c
M clang/test/Sema/attr-availability.c
M clang/test/Sema/attr-cleanup.c
M clang/test/Sema/attr-coldhot.c
M clang/test/Sema/attr-decl-after-definition.c
M clang/test/Sema/attr-deprecated-c2x.c
M clang/test/Sema/attr-deprecated-message.c
M clang/test/Sema/attr-deprecated.c
M clang/test/Sema/attr-diagnose-as-builtin.c
M clang/test/Sema/attr-enforce-tcb.c
M clang/test/Sema/attr-external-source-symbol.c
M clang/test/Sema/attr-guard_nocf.c
M clang/test/Sema/attr-leaf.c
M clang/test/Sema/attr-likelihood.c
M clang/test/Sema/attr-long-call.c
M clang/test/Sema/attr-malloc.c
M clang/test/Sema/attr-micromips.c
M clang/test/Sema/attr-mig.c
M clang/test/Sema/attr-mig.m
M clang/test/Sema/attr-minsize.c
M clang/test/Sema/attr-mode-enums.c
M clang/test/Sema/attr-mode.c
M clang/test/Sema/attr-naked.c
M clang/test/Sema/attr-nocf_check.c
M clang/test/Sema/attr-nodebug.c
M clang/test/Sema/attr-noduplicate.c
M clang/test/Sema/attr-noinline.c
M clang/test/Sema/attr-notail.c
M clang/test/Sema/attr-print.c
M clang/test/Sema/attr-retain.c
M clang/test/Sema/attr-returns-twice.c
M clang/test/Sema/attr-section.c
M clang/test/Sema/attr-selectany.c
M clang/test/Sema/attr-sentinel.c
M clang/test/Sema/attr-target-clones.c
M clang/test/Sema/attr-target.c
M clang/test/Sema/attr-tls_model.c
M clang/test/Sema/attr-unavailable-message.c
M clang/test/Sema/attr-uninitialized.c
M clang/test/Sema/attr-unknown.c
M clang/test/Sema/attr-used.c
M clang/test/Sema/attr-visibility.c
M clang/test/Sema/attr-wasm.c
M clang/test/Sema/attr-weak.c
M clang/test/Sema/avr-interrupt-attr.c
M clang/test/Sema/avr-signal-attr.c
M clang/test/Sema/block-args.c
M clang/test/Sema/block-explicit-noreturn-type.c
M clang/test/Sema/block-labels.c
M clang/test/Sema/block-literal.c
M clang/test/Sema/block-printf-attribute-1.c
M clang/test/Sema/block-return-1.c
M clang/test/Sema/block-return-2.c
M clang/test/Sema/block-return-3.c
M clang/test/Sema/block-return.c
M clang/test/Sema/block-sentinel-attribute.c
M clang/test/Sema/block-storageclass.c
M clang/test/Sema/bpf-attr-preserve-access-index.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 first 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