[all-commits] [llvm/llvm-project] 2ceee2: Add -Wno-strict-prototypes to C tests; NFC

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


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

  Changed paths:
    M clang/test/AST/ast-dump-decl-json.c
    M clang/test/AST/ast-dump-decl.c
    M clang/test/Analysis/blocks.m
    M clang/test/Analysis/casts.c
    M clang/test/Analysis/inline.c
    M clang/test/Analysis/malloc.c
    M clang/test/Analysis/misc-ps-region-store.m
    M clang/test/Analysis/misc-ps.m
    M clang/test/Analysis/null-deref-ps.c
    M clang/test/CodeGen/X86/x86_64-arguments.c
    M clang/test/CodeGen/attributes.c
    M clang/test/CodeGen/blocks.c
    M clang/test/CodeGen/call.c
    M clang/test/CodeGen/exceptions-strictfp.c
    M clang/test/CodeGen/exceptions.c
    M clang/test/CodeGen/exprs.c
    M clang/test/CodeGen/extend-arg-64.c
    M clang/test/CodeGen/functions.c
    M clang/test/CodeGen/incomplete-function-type.c
    M clang/test/CodeGen/inline.c
    M clang/test/CodeGen/inline2.c
    M clang/test/CodeGen/microsoft-call-conv-x64.c
    M clang/test/CodeGen/microsoft-call-conv.c
    M clang/test/CodeGen/ms-inline-asm-64.c
    M clang/test/CodeGen/sret.c
    M clang/test/CodeGen/stdcall-fastcall.c
    M clang/test/CodeGen/transparent-union-redecl.c
    M clang/test/CodeGen/unique-internal-linkage-names-dwarf.c
    M clang/test/CodeGen/ve-abi.c
    M clang/test/CodeGenCXX/funcsig.cpp
    M clang/test/CodeGenObjC/blocks.m
    M clang/test/Coverage/ast-printing.c
    M clang/test/Coverage/codegen.c
    M clang/test/Coverage/html-print.c
    M clang/test/Modules/malformed-overload.m
    M clang/test/OpenMP/declare_variant_clauses_messages.cpp
    M clang/test/OpenMP/declare_variant_messages.c
    M clang/test/PCH/types.c
    M clang/test/Parser/attributes.c
    M clang/test/Parser/c2x-attributes.c
    M clang/test/Sema/alias-redefinition.c
    M clang/test/Sema/alloc-size.c
    M clang/test/Sema/arm-cmse.c
    M clang/test/Sema/attr-alias-elf.c
    M clang/test/Sema/attr-c2x.c
    M clang/test/Sema/attr-cpuspecific.c
    M clang/test/Sema/attr-noreturn.c
    M clang/test/Sema/attr-ownership.c
    M clang/test/Sema/attr-swiftcall.c
    M clang/test/Sema/attr-target-mv.c
    M clang/test/Sema/attr-unused.c
    M clang/test/Sema/auto-type.c
    M clang/test/Sema/block-call.c
    M clang/test/Sema/block-misc.c
    M clang/test/Sema/builtin-assume-aligned.c
    M clang/test/Sema/builtin-dump-struct.c
    M clang/test/Sema/c89.c
    M clang/test/Sema/callingconv-iamcu.c
    M clang/test/Sema/callingconv.c
    M clang/test/Sema/constructor-attribute.c
    M clang/test/Sema/decl-microsoft-call-conv.c
    M clang/test/Sema/expr-address-of.c
    M clang/test/Sema/extern-redecl.c
    M clang/test/Sema/fp16-sema.c
    M clang/test/Sema/function-redecl.c
    M clang/test/Sema/function.c
    M clang/test/Sema/generic-selection.c
    M clang/test/Sema/implicit-builtin-decl.c
    M clang/test/Sema/implicit-int.c
    M clang/test/Sema/incomplete-call.c
    M clang/test/Sema/initialize-noreturn.c
    M clang/test/Sema/invalid-decl.c
    M clang/test/Sema/merge-decls.c
    M clang/test/Sema/ms_abi-sysv_abi.c
    M clang/test/Sema/nonnull.c
    M clang/test/Sema/overloadable.c
    M clang/test/Sema/predefined-function.c
    M clang/test/Sema/redefinition.c
    M clang/test/Sema/return.c
    M clang/test/Sema/sentinel-attribute.c
    M clang/test/Sema/sizeless-1.c
    M clang/test/Sema/static-array.c
    M clang/test/Sema/stdcall-fastcall-x64.c
    M clang/test/Sema/stdcall-fastcall.c
    M clang/test/Sema/type-spec-struct-union.c
    M clang/test/Sema/unused-expr.c
    M clang/test/SemaObjC/arc-decls.m
    M clang/test/SemaObjC/attr-swift_name.m
    M clang/test/SemaObjC/blocks.m
    M clang/test/SemaObjC/cocoa-api-usage.m.fixed
    M clang/test/SemaObjC/delay-parsing-cfunctions.m
    M clang/test/SemaObjC/externally-retained.m
    M clang/test/SemaObjC/protocol-archane.m
    M clang/test/SemaOpenCL/invalid-pipes-cl2.0.cl

  Log Message:
  -----------
  Add -Wno-strict-prototypes to C tests; NFC

This patch adds -Wno-strict-prototypes to all of the test cases that
use functions without prototypes, but not as the primary concern of the
test. e.g., attributes testing whether they can/cannot be applied to a
function without a prototype, etc.

This is done in preparation for enabling -Wstrict-prototypes by
default.




More information about the All-commits mailing list