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

Aaron Ballman via All-commits all-commits at lists.llvm.org
Mon Feb 7 12:29:52 PST 2022


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

  Changed paths:
    M clang/test/Parser/CompoundStmtScope.c
    M clang/test/Parser/MicrosoftExtensions.c
    M clang/test/Parser/altivec-non-type-vector.c
    M clang/test/Parser/altivec-typedef-vector.c
    M clang/test/Parser/altivec.c
    M clang/test/Parser/asm.c
    M clang/test/Parser/atomic.c
    M clang/test/Parser/attr-availability.c
    M clang/test/Parser/attr-external-source-symbol.m
    M clang/test/Parser/attributes.c
    M clang/test/Parser/bad-control.c
    M clang/test/Parser/block-block-storageclass.c
    M clang/test/Parser/brackets.c
    M clang/test/Parser/builtin_classify_type.c
    M clang/test/Parser/builtin_source_location.c
    M clang/test/Parser/builtin_types_compatible.c
    M clang/test/Parser/c-namespace.c
    M clang/test/Parser/c11-noreturn.c
    M clang/test/Parser/captured-statements.c
    M clang/test/Parser/check_cast.c
    M clang/test/Parser/compound_literal.c
    M clang/test/Parser/debugger-import-module.m
    M clang/test/Parser/expressions.c
    M clang/test/Parser/expressions.m
    M clang/test/Parser/extension.c
    M clang/test/Parser/gcc-for-loop-init-compatibility.c
    M clang/test/Parser/goto.c
    M clang/test/Parser/implicit-casts.c
    M clang/test/Parser/ms-if-exists.c
    M clang/test/Parser/ms-inline-asm-nested-braces.c
    M clang/test/Parser/ms-inline-asm.c
    M clang/test/Parser/ms-seh.c
    M clang/test/SemaObjC/catch-invalid.m
    M clang/test/SemaObjC/catch-stmt.m
    M clang/test/SemaObjC/category-method-lookup.m
    M clang/test/SemaObjC/check-dup-objc-decls-1.m
    M clang/test/SemaObjC/circular-container.m
    M clang/test/SemaObjC/class-message-protocol-lookup.m
    M clang/test/SemaObjC/class-property-access.m
    M clang/test/SemaObjC/class-stub-attr.m
    M clang/test/SemaObjC/class-unavail-warning.m
    M clang/test/SemaObjC/compare-qualified-class.m
    M clang/test/SemaObjC/compound-init.m
    M clang/test/SemaObjC/comptypes-1.m
    M clang/test/SemaObjC/comptypes-2.m
    M clang/test/SemaObjC/comptypes-3.m
    M clang/test/SemaObjC/comptypes-4.m
    M clang/test/SemaObjC/comptypes-5.m
    M clang/test/SemaObjC/comptypes-7.m
    M clang/test/SemaObjC/comptypes-8.m
    M clang/test/SemaObjC/comptypes-legal.m
    M clang/test/SemaObjC/debugger-cast-result-to-id.m
    M clang/test/SemaObjC/delay-parsing-cfunctions.m
    M clang/test/SemaObjC/deprecate_function_containers.m
    M clang/test/SemaObjC/deprecated-objc-introspection.m
    M clang/test/SemaObjC/dictionary-literal-duplicates.m
    M clang/test/SemaObjC/dllexport.m
    M clang/test/SemaObjC/dllimport.m
    M clang/test/SemaObjC/encode-typeof-test.m
    M clang/test/SemaObjC/enum-fixed-type.m
    M clang/test/SemaObjC/error-outof-scope-property-use.m
    M clang/test/SemaObjC/exprs.m
    M clang/test/SemaObjC/externally-retained.m
    M clang/test/SemaObjC/foreach.m
    M clang/test/SemaObjC/format-cstrings-warning.m
    M clang/test/SemaObjC/format-ostrace-warning.m
    M clang/test/SemaObjC/format-size-spec-nsinteger.m
    M clang/test/SemaObjC/format-strings-objc.m
    M clang/test/SemaObjC/gc-attributes.m
    M clang/test/SemaObjC/iboutlet.m
    M clang/test/SemaObjC/id.m
    M clang/test/SemaObjC/ignore-qualifier-on-qualified-id.m
    M clang/test/SemaObjC/illegal-nonarc-bridged-cast.m
    M clang/test/SemaObjC/infer-availability-from-init.m
    M clang/test/SemaObjC/instancetype.m
    M clang/test/SemaObjC/interface-1.m
    M clang/test/SemaObjC/invalid-code.m
    M clang/test/SemaObjC/invalid-receiver.m
    M clang/test/SemaObjC/ivar-sem-check-1.m
    M clang/test/SemaObjC/kindof.m
    M clang/test/SemaObjC/legacy-implementation-1.m
    M clang/test/SemaObjC/message.m
    M clang/test/SemaObjC/method-arg-qualifier-warning.m
    M clang/test/SemaObjC/method-bad-param.m
    M clang/test/SemaObjC/method-not-defined.m
    M clang/test/SemaObjC/method-sentinel-attr.m
    M clang/test/SemaObjC/mrc-weak.m
    M clang/test/SemaObjC/no-objc-exceptions.m
    M clang/test/SemaObjC/ns_returns_retained_block_return.m
    M clang/test/SemaObjC/nsobject-attribute.m
    M clang/test/SemaObjC/nullability.m
    M clang/test/SemaObjC/nullable-result.m
    M clang/test/SemaObjC/objc-array-literal.m
    M clang/test/SemaObjC/objc-boxed-expressions-nsvalue.m
    M clang/test/SemaObjC/objc-buffered-methods.m
    M clang/test/SemaObjC/objc-class-property.m
    M clang/test/SemaObjC/objc-container-subscripting-1.m
    M clang/test/SemaObjC/objc-container-subscripting-2.m
    M clang/test/SemaObjC/objc-container-subscripting-3.m
    M clang/test/SemaObjC/objc-container-subscripting.m
    M clang/test/SemaObjC/objc-cstyle-args-in-methods.m
    M clang/test/SemaObjC/objc-dictionary-literal.m
    M clang/test/SemaObjC/objc-independent-class-attribute.m
    M clang/test/SemaObjC/objc-literal-fixit.m
    M clang/test/SemaObjC/objc-literal-nsnumber.m
    M clang/test/SemaObjC/objc-literal-sig.m
    M clang/test/SemaObjC/objc2-merge-gc-attribue-decl.m
    M clang/test/SemaObjC/objc2-warn-weak-decl.m
    M clang/test/SemaObjC/objcbridge-attribute.m
    M clang/test/SemaObjC/opaque-is-access-warn.m
    M clang/test/SemaObjC/opaque-is-access.m
    M clang/test/SemaObjC/ovl-check.m
    M clang/test/SemaObjC/parameterized_classes.m
    M clang/test/SemaObjC/potentially-direct-selector.m
    M clang/test/SemaObjC/property-10.m
    M clang/test/SemaObjC/property-13.m
    M clang/test/SemaObjC/property-error-readonly-assign.m
    M clang/test/SemaObjC/property-expression-error.m
    M clang/test/SemaObjC/property-in-class-extension.m
    M clang/test/SemaObjC/property-not-lvalue.m
    M clang/test/SemaObjC/property.m
    M clang/test/SemaObjC/protocol-attribute.m
    M clang/test/SemaObjC/protocol-expr-1.m
    M clang/test/SemaObjC/protocol-expr-neg-1.m
    M clang/test/SemaObjC/protocol-typecheck.m
    M clang/test/SemaObjC/protocol-warn.m
    M clang/test/SemaObjC/rdar6248119.m
    M clang/test/SemaObjC/related-result-type-inference.m
    M clang/test/SemaObjC/resolve-method-in-global-pool.m
    M clang/test/SemaObjC/return.m
    M clang/test/SemaObjC/scope-check.m
    M clang/test/SemaObjC/selector-1.m
    M clang/test/SemaObjC/selector-2.m
    M clang/test/SemaObjC/selector-3.m
    M clang/test/SemaObjC/selector-4.m
    M clang/test/SemaObjC/selector-overload.m
    M clang/test/SemaObjC/setter-dotsyntax.m
    M clang/test/SemaObjC/sign-conversion.m
    M clang/test/SemaObjC/signed-char-bool-conversion.m
    M clang/test/SemaObjC/sizeof-interface.m
    M clang/test/SemaObjC/special-dep-unavail-warning.m
    M clang/test/SemaObjC/static-ivar-ref-1.m
    M clang/test/SemaObjC/super-property-notation.m
    M clang/test/SemaObjC/super.m
    M clang/test/SemaObjC/synchronized.m
    M clang/test/SemaObjC/synth-provisional-ivars-1.m
    M clang/test/SemaObjC/transfer-boxed-string-nullability.m
    M clang/test/SemaObjC/try-catch.m
    M clang/test/SemaObjC/ucn-objc-string.m
    M clang/test/SemaObjC/unguarded-availability-maccatalyst.m
    M clang/test/SemaObjC/unguarded-availability-new.m
    M clang/test/SemaObjC/unguarded-availability.m
    M clang/test/SemaObjC/uninit-variables.m
    M clang/test/SemaObjC/unknown-anytype.m
    M clang/test/SemaObjC/unqualified-to-qualified-class-warn.m
    M clang/test/SemaObjC/unused.m
    M clang/test/SemaObjC/warn-cast-of-sel-expr.m
    M clang/test/SemaObjC/warn-direct-ivar-access.m
    M clang/test/SemaObjC/warn-incompatible-builtin-types.m
    M clang/test/SemaObjC/warn-loop-analysis.m
    M clang/test/SemaObjC/warn-retain-block-property.m
    M clang/test/SemaObjC/warn-retain-cycle.m
    M clang/test/SemaObjC/warn-strict-selector-match.m
    M clang/test/SemaObjC/warn-unreachable.m
    M clang/test/SemaObjC/warn-unused-exception-param.m
    M clang/test/SemaObjC/warn-weak-field.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 fourth 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