[all-commits] [llvm/llvm-project] 46b0d0: Use functions with prototypes when appropriate; NFC
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Wed Feb 16 13:10:53 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 46b0d0eef9e0a7290851cce0d44002b750584f1b
https://github.com/llvm/llvm-project/commit/46b0d0eef9e0a7290851cce0d44002b750584f1b
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2022-02-16 (Wed, 16 Feb 2022)
Changed paths:
M clang/test/CodeGen/target-builtin-noerror.c
M clang/test/CodeGen/target-features-error.c
M clang/test/CodeGen/target-features-no-error.c
M clang/test/CodeGen/tentative-decls.c
M clang/test/CodeGen/thinlto-clang-diagnostic-handler-in-be.c
M clang/test/CodeGen/thinlto-debug-pm.c
M clang/test/CodeGen/thinlto-emit-llvm.c
M clang/test/CodeGen/thinlto-inline-asm.c
M clang/test/CodeGen/thinlto-inline-asm2.c
M clang/test/CodeGen/thinlto-split-dwarf.c
M clang/test/CodeGen/thread-specifier.c
M clang/test/CodeGen/trapv.c
M clang/test/CodeGen/tsan-instrprof-atomic.c
M clang/test/CodeGen/typedef-func.c
M clang/test/CodeGen/types.c
M clang/test/CodeGen/ubsan-asan-noreturn.c
M clang/test/CodeGen/ubsan-conditional.c
M clang/test/CodeGen/ubsan-debuglog-return.c
M clang/test/CodeGen/ubsan-ignorelist-vfs.c
M clang/test/CodeGen/ubsan-ignorelist.c
M clang/test/CodeGen/ubsan-noreturn.c
M clang/test/CodeGen/ucn-identifiers.c
M clang/test/CodeGen/unaligned-expr.c
M clang/test/CodeGen/unaligned-memcpy.c
M clang/test/CodeGen/union.c
M clang/test/CodeGen/unique-internal-linkage-names-dwarf.c
M clang/test/CodeGen/unreachable-ret.c
M clang/test/CodeGen/unreachable.c
M clang/test/CodeGen/unsigned-overflow-minimal.c
M clang/test/CodeGen/unsigned-overflow.c
M clang/test/CodeGen/unsigned-promotion.c
M clang/test/CodeGen/unsigned-trapv.c
M clang/test/CodeGen/unwind-attr.c
M clang/test/CodeGen/utf16-cfstrings.c
M clang/test/CodeGen/uwtable-attr.c
M clang/test/CodeGen/varargs.c
M clang/test/CodeGen/variable-array.c
M clang/test/CodeGen/ve-abi.c
M clang/test/CodeGen/vecshift.c
M clang/test/CodeGen/vector.c
M clang/test/CodeGen/vectorcall.c
M clang/test/CodeGen/vla-4.c
M clang/test/CodeGen/vla.c
M clang/test/CodeGen/vlt_to_pointer.c
M clang/test/CodeGen/volatile-1.c
M clang/test/CodeGen/volatile-2.c
M clang/test/CodeGen/volatile-complex.c
M clang/test/CodeGen/volatile.c
M clang/test/CodeGen/whilestmt.c
M clang/test/CodeGen/win64-i128.c
M clang/test/CodeGen/windows-itanium.c
M clang/test/CodeGen/windows-on-arm-dllimport-dllexport.c
M clang/test/CodeGen/windows-swiftcall.c
M clang/test/CodeGen/writable-strings.c
M clang/test/CodeGen/zero-call-used-regs.c
M clang/test/CodeGenObjC/2008-11-25-Blocks.m
M clang/test/CodeGenObjC/2009-02-05-VolatileProp.m
M clang/test/CodeGenObjC/arc-blocks-exceptions.m
M clang/test/CodeGenObjC/arc-blocks.m
M clang/test/CodeGenObjC/arc-bridged-cast.m
M clang/test/CodeGenObjC/arc-captured-32bit-block-var-layout-2.m
M clang/test/CodeGenObjC/arc-captured-32bit-block-var-layout.m
M clang/test/CodeGenObjC/arc-captured-block-var-inlined-layout.m
M clang/test/CodeGenObjC/arc-captured-block-var-layout.m
M clang/test/CodeGenObjC/arc-literals.m
M clang/test/CodeGenObjC/arc-no-runtime.m
M clang/test/CodeGenObjC/arc-precise-lifetime.m
M clang/test/CodeGenObjC/arc-rv-attr.m
M clang/test/CodeGenObjC/arc-unbridged-cast.m
M clang/test/CodeGenObjC/arc-unoptimized-byref-var.m
M clang/test/CodeGenObjC/arc-unsafeclaim.m
M clang/test/CodeGenObjC/arc-with-atthrow.m
M clang/test/CodeGenObjC/arc.m
M clang/test/CodeGenObjC/attr-noreturn.m
M clang/test/CodeGenObjC/attr-speculative-load-hardening.m
M clang/test/CodeGenObjC/availability-cf-link-guard.m
M clang/test/CodeGenObjC/availability-check-maccatalyst.m
M clang/test/CodeGenObjC/availability-check.m
M clang/test/CodeGenObjC/block-6.m
M clang/test/CodeGenObjC/block-byref-debuginfo.m
M clang/test/CodeGenObjC/block-byref-variable-layout.m
M clang/test/CodeGenObjC/block-ptr-type-crash.m
M clang/test/CodeGenObjC/block-var-layout.m
M clang/test/CodeGenObjC/blocks-1.m
M clang/test/CodeGenObjC/blocks-2.m
M clang/test/CodeGenObjC/blocks-3.m
M clang/test/CodeGenObjC/blocks-4.m
M clang/test/CodeGenObjC/blocks-5.m
M clang/test/CodeGenObjC/boxing.m
M clang/test/CodeGenObjC/catch-lexical-block.m
M clang/test/CodeGenObjC/class-stubs.m
M clang/test/CodeGenObjC/constant-string-class.m
M clang/test/CodeGenObjC/convert-messages-to-runtime-calls.m
M clang/test/CodeGenObjC/debug-info-block-type.m
M clang/test/CodeGenObjC/debug-info-blocks.m
M clang/test/CodeGenObjC/debug-info-getter-name.m
M clang/test/CodeGenObjC/debug-info-id-with-protocol.m
M clang/test/CodeGenObjC/debug-info-ivars-indirect.m
M clang/test/CodeGenObjC/debug-info-property-accessors.m
M clang/test/CodeGenObjC/debug-property-synth.m
M clang/test/CodeGenObjC/dllstorage.m
M clang/test/CodeGenObjC/dot-syntax-1.m
M clang/test/CodeGenObjC/dot-syntax.m
M clang/test/CodeGenObjC/empty-collection-literals.m
M clang/test/CodeGenObjC/encode-test-2.m
M clang/test/CodeGenObjC/encode-test-3.m
M clang/test/CodeGenObjC/encode-test-4.m
M clang/test/CodeGenObjC/encode-test-6.m
M clang/test/CodeGenObjC/encode-test.m
M clang/test/CodeGenObjC/exceptions-asm-attribute.m
M clang/test/CodeGenObjC/exceptions-nonfragile.m
M clang/test/CodeGenObjC/exceptions.m
M clang/test/CodeGenObjC/extended-block-signature-encode.m
M clang/test/CodeGenObjC/externally-retained.m
M clang/test/CodeGenObjC/for-in.m
M clang/test/CodeGenObjC/forward-protocol-metadata-symbols.m
M clang/test/CodeGenObjC/fp2ret.m
M clang/test/CodeGenObjC/fpret.m
M clang/test/CodeGenObjC/fragile-arc.m
M clang/test/CodeGenObjC/gnu-deterministic-selectors.m
M clang/test/CodeGenObjC/gnu-exceptions.m
M clang/test/CodeGenObjC/gnustep2-proto.m
M clang/test/CodeGenObjC/hidden-visibility.m
M clang/test/CodeGenObjC/id-isa-codegen.m
M clang/test/CodeGenObjC/initialize-function-static.m
M clang/test/CodeGenObjC/ivar-type-encoding.m
M clang/test/CodeGenObjC/link-errors.m
M clang/test/CodeGenObjC/local-static-block.m
M clang/test/CodeGenObjC/metadata-symbols-32.m
M clang/test/CodeGenObjC/metadata_symbols.m
M clang/test/CodeGenObjC/mrc-weak.m
M clang/test/CodeGenObjC/mrr-captured-block-var-inlined-layout.m
M clang/test/CodeGenObjC/nested-rethrow.m
M clang/test/CodeGenObjC/no-sanitize.m
M clang/test/CodeGenObjC/noescape.m
M clang/test/CodeGenObjC/nontrivial-c-struct-within-struct-name.m
M clang/test/CodeGenObjC/ns-constant-strings.m
M clang/test/CodeGenObjC/objc-alloc-init.m
M clang/test/CodeGenObjC/objc-arc-container-subscripting.m
M clang/test/CodeGenObjC/objc-asm-attribute-test.m
M clang/test/CodeGenObjC/objc-assign-ivar.m
M clang/test/CodeGenObjC/objc-container-subscripting-1.m
M clang/test/CodeGenObjC/objc-container-subscripting.m
M clang/test/CodeGenObjC/objc-dictionary-literal.m
M clang/test/CodeGenObjC/objc-fixed-enum.m
M clang/test/CodeGenObjC/objc-literal-debugger-test.m
M clang/test/CodeGenObjC/objc-literal-tests.m
M clang/test/CodeGenObjC/objc-read-weak-byref.m
M clang/test/CodeGenObjC/objc2-assign-global.m
M clang/test/CodeGenObjC/objc2-new-gc-api-strongcast.m
M clang/test/CodeGenObjC/objc2-strong-cast-block-import.m
M clang/test/CodeGenObjC/objc2-weak-assign.m
M clang/test/CodeGenObjC/objc2-weak-compare.m
M clang/test/CodeGenObjC/objc2-weak-import-attribute.m
M clang/test/CodeGenObjC/objc2-write-barrier.m
M clang/test/CodeGenObjC/object-incr-decr-1.m
M clang/test/CodeGenObjC/os_log.m
M clang/test/CodeGenObjC/property-agrr-getter.m
M clang/test/CodeGenObjC/property-getter-dot-syntax.m
M clang/test/CodeGenObjC/property-incr-decr-1.m
M clang/test/CodeGenObjC/property-ref-cast-to-void.m
M clang/test/CodeGenObjC/property.m
M clang/test/CodeGenObjC/protocols-lazy.m
M clang/test/CodeGenObjC/protocols.m
M clang/test/CodeGenObjC/related-result-type.m
M clang/test/CodeGenObjC/stret.m
M clang/test/CodeGenObjC/strong-in-c-struct.m
M clang/test/CodeGenObjC/super-dotsyntax-property.m
M clang/test/CodeGenObjC/tentative-cfconstantstring.m
M clang/test/CodeGenObjC/ubsan-bool.m
M clang/test/CodeGenObjC/ubsan-nonnull-and-nullability.m
M clang/test/CodeGenObjC/ubsan-nullability.m
M clang/test/CodeGenObjC/unqual-copy-restore.m
M clang/test/CodeGenObjC/weak-metaclass-visibility.m
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 twelfth batch of tests being updated (the end may be in
sight soon though).
More information about the All-commits
mailing list