[all-commits] [llvm/llvm-project] 8c5edb: Use functions with prototypes when appropriate; NFC

Aaron Ballman via All-commits all-commits at lists.llvm.org
Fri Feb 4 12:20:55 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c5edb59cf487373e545ccb87ffcd24cb7d0d0ec
      https://github.com/llvm/llvm-project/commit/8c5edb59cf487373e545ccb87ffcd24cb7d0d0ec
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2022-02-04 (Fri, 04 Feb 2022)

  Changed paths:
    M clang/test/Sema/2007-10-01-BuildArrayRef.c
    M clang/test/Sema/attr-alias.c
    M clang/test/Sema/builtin-alloca-with-align.c
    M clang/test/Sema/builtin-bpf-btf-type-id.c
    M clang/test/Sema/builtin-classify-type.c
    M clang/test/Sema/builtin-cpu-supports.c
    M clang/test/Sema/builtin-object-size.c
    M clang/test/Sema/builtin-prefetch.c
    M clang/test/Sema/builtin-setjmp.c
    M clang/test/Sema/builtin-unary-fp.c
    M clang/test/Sema/builtins-aarch64.c
    M clang/test/Sema/builtins-arm-exclusive.c
    M clang/test/Sema/builtins-arm.c
    M clang/test/Sema/builtins-arm64-exclusive.c
    M clang/test/Sema/builtins-arm64-mte.c
    M clang/test/Sema/builtins-arm64.c
    M clang/test/Sema/builtins-bpf.c
    M clang/test/Sema/builtins-microsoft-arm64.c
    M clang/test/Sema/builtins-overflow.m
    M clang/test/Sema/builtins.c
    M clang/test/Sema/call-with-static-chain.c
    M clang/test/Sema/callingconv-cast.c
    M clang/test/Sema/captured-statements.c
    M clang/test/Sema/cast-incomplete.c
    M clang/test/Sema/cast.c
    M clang/test/Sema/check-increment.c
    M clang/test/Sema/compare.c
    M clang/test/Sema/complete-incomplete-pointer-relational-c99.c
    M clang/test/Sema/complex-imag.c
    M clang/test/Sema/complex-int.c
    M clang/test/Sema/conditional-expr.c
    M clang/test/Sema/conditional.c
    M clang/test/Sema/const-eval.c
    M clang/test/Sema/constant-builtins-2.c
    M clang/test/Sema/constant-builtins.c
    M clang/test/Sema/constant-conversion.c
    M clang/test/Sema/constructor-attribute.c
    M clang/test/Sema/conversion-target-dep.c
    M clang/test/Sema/conversion.c
    M clang/test/Sema/crash-invalid-array.c
    M clang/test/Sema/decl-in-prototype.c
    M clang/test/Sema/decl-invalid.c
    M clang/test/Sema/decl-type-merging.c
    M clang/test/Sema/declspec.c
    M clang/test/Sema/designated-initializers.c
    M clang/test/Sema/dllexport.c
    M clang/test/Sema/dllimport.c
    M clang/test/Sema/empty1.c
    M clang/test/Sema/enable_if-ext.c
    M clang/test/Sema/enable_if.c
    M clang/test/Sema/enum-attr.c
    M clang/test/Sema/enum-increment.c
    M clang/test/Sema/enum.c
    M clang/test/Sema/expr-address-of.c
    M clang/test/Sema/exprs.c
    M clang/test/Sema/ext_vector_casts.c
    M clang/test/Sema/ext_vector_comparisons.c
    M clang/test/Sema/ext_vector_components.c
    M clang/test/Sema/ext_vector_conversions.c
    M clang/test/Sema/flexible-array-init.c
    M clang/test/Sema/format-bool.c
    M clang/test/Sema/format-strings-bitfield-promotion.c
    M clang/test/Sema/format-strings-darwin.c
    M clang/test/Sema/format-strings-enum.c
    M clang/test/Sema/format-strings-fixit-ssize_t.c
    M clang/test/Sema/format-strings-fixit.c
    M clang/test/Sema/format-strings-gnu.c
    M clang/test/Sema/format-strings-ms.c
    M clang/test/Sema/format-strings-no-fixit.c
    M clang/test/Sema/format-strings-pedantic.c
    M clang/test/Sema/format-strings-scanf.c
    M clang/test/Sema/format-strings.c
    M clang/test/Sema/format-type-confusion.c
    M clang/test/Sema/gnu-flags.c
    M clang/test/Sema/gnu89.c
    M clang/test/Sema/heinous-extensions-off.c
    M clang/test/Sema/heinous-extensions-on.c
    M clang/test/Sema/i-c-e.c
    M clang/test/Sema/implicit-builtin-redecl.c
    M clang/test/Sema/implicit-decl.c
    M clang/test/Sema/implicit-def.c
    M clang/test/Sema/implicit-int-conversion.c
    M clang/test/Sema/implicit-int-float-conversion.c
    M clang/test/Sema/implicit-intel-builtin-decl.c
    M clang/test/Sema/implicit-ms-builtin-decl.c
    M clang/test/Sema/incompatible-function-pointer-types.c
    M clang/test/Sema/incomplete-decl.c
    M clang/test/Sema/init-ref-c.c
    M clang/test/Sema/init-struct-qualified.c
    M clang/test/Sema/init.c
    M clang/test/Sema/inline.c
    M clang/test/Sema/integer-overflow.c
    M clang/test/Sema/internal_linkage.c
    M clang/test/Sema/loop-control.c
    M clang/test/Sema/matrix-cast.c
    M clang/test/Sema/matrix-type-operators.c
    M clang/test/Sema/memset-invalid.c
    M clang/test/Sema/mips-interrupt-attr.c
    M clang/test/Sema/mips16_attr_allowed.c
    M clang/test/Sema/mips16_attr_not_allowed.c
    M clang/test/Sema/ms-inline-asm-invalid-arch.c
    M clang/test/Sema/ms-inline-asm.c
    M clang/test/Sema/ms-keyword-system-header.c
    M clang/test/Sema/ms-wchar.c
    M clang/test/Sema/negative-shift-wrapv.c
    M clang/test/Sema/no_stack_protector.c
    M clang/test/Sema/nocf_check_attr_not_allowed.c
    M clang/test/Sema/non-null-warning.c
    M clang/test/Sema/ns_error_enum.m
    M clang/test/Sema/nullability.c
    M clang/test/Sema/objc-bool-constant-conversion-fixit.m
    M clang/test/Sema/objc-bool-constant-conversion.m
    M clang/test/Sema/offsetof.c
    M clang/test/Sema/outof-range-constant-compare.c
    M clang/test/Sema/outof-range-enum-constant-compare.c
    M clang/test/Sema/overload-arm-mve.c
    M clang/test/Sema/parentheses.c
    M clang/test/Sema/pass-object-size.c
    M clang/test/Sema/patchable-function-entry-attr.c
    M clang/test/Sema/pointer-subtraction.c
    M clang/test/Sema/pragma-attribute-namespace.c
    M clang/test/Sema/pragma-attribute.c
    M clang/test/Sema/pragma-pack-2.c
    M clang/test/Sema/pragma-unused.c
    M clang/test/Sema/predef.c
    M clang/test/Sema/private-extern.c
    M clang/test/Sema/recover-goto.c
    M clang/test/Sema/redefine_extname.c
    M clang/test/Sema/redefinition-same-header.c
    M clang/test/Sema/renderscript.rs
    M clang/test/Sema/reserved-identifier.c
    M clang/test/Sema/return-noreturn.c
    M clang/test/Sema/return-silent.c
    M clang/test/Sema/riscv-interrupt-attr.c
    M clang/test/Sema/riscv-types.c
    M clang/test/Sema/rounding-math.c
    M clang/test/Sema/scope-check.c
    M clang/test/Sema/self-comparison.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 second 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