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

Aaron Ballman via All-commits all-commits at lists.llvm.org
Wed Feb 9 14:16:27 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7de71613049fa1333ef819b6dc740356ff4efff5
      https://github.com/llvm/llvm-project/commit/7de71613049fa1333ef819b6dc740356ff4efff5
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2022-02-09 (Wed, 09 Feb 2022)

  Changed paths:
    M clang/test/Driver/attr-availability-fuchsia.c
    M clang/test/Driver/cc-log-diagnostics.c
    M clang/test/Driver/cl-options.c
    M clang/test/Driver/cl-x86-flags.c
    M clang/test/Driver/darwin-iphone-defaults.m
    M clang/test/Driver/debug-pass-structure.c
    M clang/test/Driver/exceptions.m
    M clang/test/Driver/extract-api.c
    M clang/test/Driver/implicit-function-as-error.c
    M clang/test/Driver/no-objc-arr.m
    M clang/test/Driver/ppc-mprivileged-support-check.c
    M clang/test/Driver/ppc-p10-features-support-check.c
    M clang/test/Driver/redzone.c
    M clang/test/Driver/riscv32-toolchain.c
    M clang/test/Driver/riscv64-toolchain.c
    M clang/test/Driver/types.c
    M clang/test/Driver/x86-mgeneral-regs-only.c
    M clang/test/FixIt/auto-fixit.m
    M clang/test/FixIt/auto-isa-fixit.m
    M clang/test/FixIt/fixit-availability-maccatalyst.m
    M clang/test/FixIt/fixit-availability.c
    M clang/test/FixIt/fixit-class-method-messaging.m
    M clang/test/FixIt/fixit-errors.c
    M clang/test/FixIt/fixit-format-darwin.m
    M clang/test/FixIt/fixit-format-ios-nopedantic.m
    M clang/test/FixIt/fixit-format-ios.m
    M clang/test/FixIt/fixit-multiple-selector-warnings.m
    M clang/test/FixIt/fixit-newline-style.c
    M clang/test/FixIt/fixit-nsstring-compare.m
    M clang/test/FixIt/fixit-objc.m
    M clang/test/FixIt/fixit-recursive-block.c
    M clang/test/FixIt/fixit-static-object-decl.m
    M clang/test/FixIt/fixit-uninit.c
    M clang/test/FixIt/fixit.c
    M clang/test/FixIt/format-darwin.m
    M clang/test/FixIt/format.m
    M clang/test/FixIt/multiarg-selector-fixit.m
    M clang/test/FixIt/no-macro-fixit.c
    M clang/test/FixIt/objc-literals.m
    M clang/test/FixIt/property-access-fixit.m
    M clang/test/FixIt/typo.c
    M clang/test/FixIt/typo.m
    M clang/test/Frontend/Inputs/SystemHeaderPrefix/line-directive-in-system.h
    M clang/test/Frontend/Inputs/SystemHeaderPrefix/noline.h
    M clang/test/Frontend/Inputs/absolute-paths.h
    M clang/test/Frontend/Inputs/line-directive.h
    M clang/test/Frontend/Inputs/rewrite-includes-messages.h
    M clang/test/Frontend/absolute-paths.c
    M clang/test/Frontend/ast-codegen.c
    M clang/test/Frontend/ast-main.c
    M clang/test/Frontend/backend-diagnostic.c
    M clang/test/Frontend/embed-bitcode-noopt.c
    M clang/test/Frontend/fixed_point_add.c
    M clang/test/Frontend/fixed_point_comparisons.c
    M clang/test/Frontend/fixed_point_compound.c
    M clang/test/Frontend/fixed_point_conversions.c
    M clang/test/Frontend/fixed_point_conversions_half.c
    M clang/test/Frontend/fixed_point_crash.c
    M clang/test/Frontend/fixed_point_div.c
    M clang/test/Frontend/fixed_point_errors.c
    M clang/test/Frontend/fixed_point_mul.c
    M clang/test/Frontend/fixed_point_same_fbits.c
    M clang/test/Frontend/fixed_point_shift.c
    M clang/test/Frontend/fixed_point_sub.c
    M clang/test/Frontend/fixed_point_to_bool.c
    M clang/test/Frontend/fixed_point_unary.c
    M clang/test/Frontend/fixed_point_unknown_conversions.c
    M clang/test/Frontend/ir-support.c
    M clang/test/Frontend/noderef.c
    M clang/test/Frontend/noderef_on_non_pointers.m
    M clang/test/Frontend/stdin-input.c
    M clang/test/Frontend/system-header-line-directive-ms-lineendings.c
    M clang/test/Frontend/system-header-line-directive.c
    M clang/test/Frontend/verify-prefixes.c
    M clang/test/Frontend/warning-mapping-2.c
    M clang/test/Headers/altivec-intrin.c
    M clang/test/Headers/arm-acle-header.c
    M clang/test/Headers/c11.c
    M clang/test/Headers/typedef_guards.c
    M clang/test/Headers/x86-header-warnings.c
    M clang/test/Index/Core/index-pch.c
    M clang/test/Index/Inputs/Headers/a.h
    M clang/test/Index/Inputs/Headers/a_extensions.h
    M clang/test/Index/Inputs/Headers/crash.h
    M clang/test/Index/annotate-comments-objc.m
    M clang/test/Index/crash-recovery-modules.m
    M clang/test/Index/pragma-diag-reparse.c
    M clang/test/Index/preamble-reparse-cmd-define.c
    M clang/test/Index/preamble-reparse-cmd-define.c.remap
    M clang/test/Index/preamble-reparse-import.m
    M clang/test/Index/preamble-reparse-warn-macro.c
    M clang/test/Index/warning-flags.c
    M clang/test/Integration/thinlto_profile_sample_accurate.c
    M clang/test/InterfaceStubs/externstatic.c
    M clang/test/InterfaceStubs/inline.c
    M clang/test/InterfaceStubs/inline.h
    M clang/test/Lexer/c90.c
    M clang/test/Lexer/char-escapes-delimited.c
    M clang/test/Lexer/conflict-marker.c
    M clang/test/Lexer/ms-extensions.c
    M clang/test/Lexer/multiple-include.c
    M clang/test/Lexer/newline-eof.c
    M clang/test/Lexer/numeric-literal-trash.c
    M clang/test/Lexer/objc_macros.m
    M clang/test/Lexer/pragma-region.c
    M clang/test/Lexer/string_concat.cpp
    M clang/test/Lexer/unicode.c
    M clang/test/Lexer/wchar.c
    M clang/test/Misc/Inputs/remapped-file-2
    M clang/test/Misc/caret-diags-macros.c
    M clang/test/Misc/clear-ast-before-backend.c
    M clang/test/Misc/diag-macro-backtrace2.c
    M clang/test/Misc/loop-opt-setup.c
    M clang/test/Misc/printer.c
    M clang/test/Misc/remap-file.c
    M clang/test/Misc/serialized-diags-driver.c
    M clang/test/Misc/serialized-diags-no-issue.c
    M clang/test/Misc/serialized-diags-single-issue.c
    M clang/test/Misc/serialized-diags-stable.c
    M clang/test/Misc/serialized-diags.c
    M clang/test/Misc/wrong-encoding.c
    M clang/test/Misc/wrong-encoding2.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 sixth 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