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

Aaron Ballman via All-commits all-commits at lists.llvm.org
Thu Feb 24 12:30:31 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c2558021c155878c305701e11e3714cb521f599
      https://github.com/llvm/llvm-project/commit/1c2558021c155878c305701e11e3714cb521f599
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2022-02-24 (Thu, 24 Feb 2022)

  Changed paths:
    M clang/test/AST/ast-dump-expr-json.m
    M clang/test/AST/ast-dump-stmt-json.c
    M clang/test/AST/ast-dump-stmt-json.m
    M clang/test/Analysis/OSAtomic_mac.c
    M clang/test/CodeGen/2005-02-27-MarkGlobalConstant.c
    M clang/test/CodeGen/2010-07-14-ref-off-end.c
    M clang/test/CodeGen/Inputs/debug-info-file-checksum-line.cpp
    M clang/test/CodeGen/Inputs/debug-info-file-checksum-pre.cpp
    M clang/test/CodeGen/X86/fp-eval-method.c
    M clang/test/CodeGen/block-copy.c
    M clang/test/CodeGen/block-with-perdefinedexpr.c
    M clang/test/CodeGen/debug-info-block-out-return.c
    M clang/test/CodeGen/debug-info-file-checksum.c
    M clang/test/CodeGen/merge-attrs.c
    M clang/test/CodeGen/sret2.c
    M clang/test/CodeGenObjC/Inputs/nsvalue-boxed-expressions-support.h
    M clang/test/CodeGenObjC/arc-blocks.m
    M clang/test/CodeGenObjC/interface.m
    M clang/test/CodeGenObjC/nsvalue-objc-boxable-ios-arc.m
    M clang/test/CodeGenObjC/nsvalue-objc-boxable-ios.m
    M clang/test/CodeGenObjC/nsvalue-objc-boxable-mac-arc.m
    M clang/test/CodeGenObjC/nsvalue-objc-boxable-mac.m
    M clang/test/Sema/Inputs/diagnose-if-warn-system-header.h
    M clang/test/Sema/c2x-nodiscard.c
    M clang/test/Sema/diagnose_if.c
    M clang/test/Sema/implicit-decl-c90.c
    M clang/test/Sema/varargs-x86-64.c
    M clang/test/Sema/varargs.c
    M clang/test/Sema/zero_call_used_regs.c
    M clang/test/SemaObjC/attr-called-once.m
    M clang/test/SemaObjC/cocoa-api-usage.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 final batch of tests being updated to add prototypes,
hopefully.




More information about the All-commits mailing list