[all-commits] [llvm/llvm-project] e8a3dd: [clang-tidy][NFC] Update tests to specify CheckOpt...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Mon Aug 7 12:33:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8a3ddafe063c970df9c23e803812369abde4c82
      https://github.com/llvm/llvm-project/commit/e8a3ddafe063c970df9c23e803812369abde4c82
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2023-08-07 (Mon, 07 Aug 2023)

  Changed paths:
    M clang-tools-extra/test/clang-tidy/checkers/abseil/string-find-startswith.cpp
    M clang-tools-extra/test/clang-tidy/checkers/abseil/string-find-str-contains.cpp
    M clang-tools-extra/test/clang-tidy/checkers/altera/single-work-item-barrier.cpp
    M clang-tools-extra/test/clang-tidy/checkers/altera/unroll-loops.cpp
    M clang-tools-extra/test/clang-tidy/checkers/android/comparison-in-temp-failure-retry-custom-macro.c
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/argument-comment-ignore-single-argument.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/argument-comment-literals.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/argument-comment-strict.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/assert-side-effect.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/dangling-handle.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-ignore.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-implicit-qualifiers.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-implicits.c
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-implicits.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-len2.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-len3.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-prefixsuffixname.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-qualifiermixing.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-relatedness.c
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters-relatedness.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/easily-swappable-parameters.c
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/exception-escape.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/implicit-widening-of-multiplication-result-array-subscript-expression.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/implicit-widening-of-multiplication-result-int.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/implicit-widening-of-multiplication-result-pointer-offset.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/misplaced-widening-cast-explicit-only.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/misplaced-widening-cast-implicit-enabled.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/not-null-terminated-result-memcpy-before-safe.c
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/reserved-identifier-invert.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/signal-handler-minimal.c
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/signal-handler-posix.c
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/signed-char-misuse-with-option.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/sizeof-expression.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/suspicious-enum-usage-strict.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/suspicious-enum-usage.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/suspicious-string-compare.c
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/suspicious-string-compare.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/too-small-loop-variable.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/unhandled-self-assignment-warn-only-if-this-has-suspicious-field.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-return-value-custom.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cert/msc32-c.c
    M clang-tools-extra/test/clang-tidy/checkers/cert/msc51-cpp.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cert/oop57-cpp.cpp
    M clang-tools-extra/test/clang-tidy/checkers/concurrency/mt-unsafe-glibc.cpp
    M clang-tools-extra/test/clang-tidy/checkers/concurrency/mt-unsafe-posix.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/macro-usage-caps-only.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/macro-usage-command-line-macros.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/macro-usage-custom.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/narrowing-conversions-equivalentbitwidth-option.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/narrowing-conversions-ignoreconversionfromtypes-option.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/narrowing-conversions-intemplates-option.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/narrowing-conversions-narrowinginteger-option.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/narrowing-conversions-narrowingintegertofloatingpoint-option.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/narrowing-conversions-pedanticmode-option.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/narrowing-conversions.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/no-malloc-custom.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/no-malloc-no-functions.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/owning-memory-legacy-functions.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/prefer-member-initializer-modernize-use-default-member-init-assignment.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-bounds-constant-array-index-gslheader.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-type-member-init-use-assignment.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-type-member-init.ignorearrays.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/special-member-functions-allow-missing-move-when-copy-is-deleted.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/special-member-functions-relaxed.cpp
    M clang-tools-extra/test/clang-tidy/checkers/google/runtime-int-std.cpp
    M clang-tools-extra/test/clang-tidy/checkers/hicpp/multiway-paths-covered-else.cpp
    M clang-tools-extra/test/clang-tidy/checkers/hicpp/signed-bitwise-integer-literals.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/non-private-member-variables-in-classes.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/unused-parameters-strict.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/avoid-bind-permissive-parameter-list.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/deprecated-headers-extern-c.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/loop-convert-camelback.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/loop-convert-lowercase.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/loop-convert-reverse.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/loop-convert-uppercase.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/make-shared-header.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/make-unique-default-init.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/make-unique-header.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/make-unique-macros.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/raw-string-literal-delimiter.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/raw-string-literal.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/replace-disallow-copy-and-assign-macro.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-auto-cast-remove-stars.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-auto-cast.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-auto-min-type-name-length.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-auto-new-remove-stars.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-auto-new.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-bool-literals-ignore-macros.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-bool-literals.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-default-member-init-assignment.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-default-member-init-macros.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-emplace-ignore-implicit-constructors.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-emplace.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default-copy.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default-macros.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-delete-macros.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-nodiscard-clang-unused.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-nodiscard-cxx11.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-nodiscard-gcc-unused.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-nodiscard-no-macro-inscope-cxx11.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-nodiscard.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-noexcept-macro.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-noexcept-opt.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-nullptr.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-override-allow-override-and-final.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-override-no-destructors.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-override-with-macro.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-override-with-no-macro-inscope.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-using-macros.cpp
    M clang-tools-extra/test/clang-tidy/checkers/objc/forbidden-subclassing-custom.m
    M clang-tools-extra/test/clang-tidy/checkers/openmp/exception-escape.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/faster-string-find.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/for-range-copy-allowed-types.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/for-range-copy-warn-on-all-auto-copies.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/inefficient-vector-operation.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/move-const-arg-const-ref.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/move-const-arg-trivially-copyable.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/move-constructor-init.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/unnecessary-copy-initialization-allowed-types.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/unnecessary-copy-initialization-excluded-container-types.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/unnecessary-value-param-allowed-types.cpp
    M clang-tools-extra/test/clang-tidy/checkers/portability/restrict-system-includes-allow.cpp
    M clang-tools-extra/test/clang-tidy/checkers/portability/restrict-system-includes-disallow.cpp
    M clang-tools-extra/test/clang-tidy/checkers/portability/restrict-system-includes-glob.cpp
    M clang-tools-extra/test/clang-tidy/checkers/portability/restrict-system-includes-transitive.cpp
    M clang-tools-extra/test/clang-tidy/checkers/portability/simd-intrinsics-ppc.cpp
    M clang-tools-extra/test/clang-tidy/checkers/portability/simd-intrinsics-x86.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/Inputs/identifier-naming/global-style1/.clang-tidy
    M clang-tools-extra/test/clang-tidy/checkers/readability/Inputs/identifier-naming/global-style2/.clang-tidy
    M clang-tools-extra/test/clang-tidy/checkers/readability/Inputs/identifier-naming/hungarian-notation1/.clang-tidy
    M clang-tools-extra/test/clang-tidy/checkers/readability/Inputs/identifier-naming/hungarian-notation2/.clang-tidy
    M clang-tools-extra/test/clang-tidy/checkers/readability/braces-around-statements-few-lines.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/braces-around-statements-same-line.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/braces-around-statements-single-line.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/else-after-return-no-cond-var-refactor.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/else-after-return-no-warn.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/function-cognitive-complexity-flags.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/function-cognitive-complexity.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/function-size-variables-c++17.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/function-size.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-length.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-bugfix-name-conflicts.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-case-violation.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-ignored-regexp.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-main-like.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-member-decl-usage.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-multiple-styles.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-objc.m
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/implicit-bool-conversion-allow-in-conditions.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/inconsistent-declaration-parameter-name-macros.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/inconsistent-declaration-parameter-name-strict.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/magic-numbers-bitfields.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/magic-numbers.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/redundant-access-specifiers-check-first-declaration.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/redundant-declaration-ignore-macros.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/redundant-declaration.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/redundant-member-init.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/redundant-smartptr-get-macros.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/redundant-string-init.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/simplify-boolean-expr-chained-conditional-assignment.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/simplify-boolean-expr-chained-conditional-return.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/simplify-boolean-expr-demorgan.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/simplify-subscript-expr.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/static-accessed-through-instance-nesting-threshold.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/uniqueptr-delete-release.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/uppercase-literal-suffix-integer-custom-list.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/uppercase-literal-suffix-integer-macro.cpp
    M clang-tools-extra/test/clang-tidy/checkers/zircon/temporary-objects.cpp
    M clang-tools-extra/test/clang-tidy/infrastructure/duplicate-conflicted-fixes-of-alias-checkers.cpp
    M clang-tools-extra/test/clang-tidy/infrastructure/expand-modular-headers-ppcallbacks.cpp
    M clang-tools-extra/test/clang-tidy/infrastructure/run-clang-tidy.cpp
    M clang-tools-extra/test/clang-tidy/infrastructure/static-analyzer-config.cpp
    M clang-tools-extra/test/clang-tidy/infrastructure/verify-config.cpp

  Log Message:
  -----------
  [clang-tidy][NFC] Update tests to specify CheckOptions using new syntax

In D128337, The spelling of CheckOptions was updated to support a more natural dictionary syntax.
This patch is just updating all test files to use the new syntax.

Reviewed By: PiotrZSL

Differential Revision: https://reviews.llvm.org/D130209


  Commit: 1af159e98c23a293c103e1f548866488126ed6f6
      https://github.com/llvm/llvm-project/commit/1af159e98c23a293c103e1f548866488126ed6f6
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-08-07 (Mon, 07 Aug 2023)

  Changed paths:
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/empty-catch.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/non-zero-enum-to-bool-conversion.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/optional-value-conversion.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/sizeof-expression-warn-on-sizeof-pointer-to-aggregate.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/unchecked-optional-access-ignore-smart.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/unsafe-functions.c
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/avoid-do-while.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/prefer-member-initializer-modernize-use-default-member-init.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/rvalue-reference-param-not-moved.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-pointer-as-values.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-templates.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-transform-pointer-as-values.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-transform-values.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-unaligned.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-values.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-wrong-config.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/header-include-cycle.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/unused-parameters-virtual.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-override-templates.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print-absl.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print-custom.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print-fmt.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/enum-size.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/avoid-const-params-in-decls-macros.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/const-return-type-macros.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/container-data-pointer.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/container-size-empty.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/magic-numbers-userliteral.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/operators-representation-to-alternative.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/operators-representation-to-traditional.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/redundant-string-cstr-function.cpp
    M clang-tools-extra/test/clang-tidy/infrastructure/Inputs/config-files/4/.clang-tidy
    M clang-tools-extra/test/clang-tidy/infrastructure/Inputs/config-files/4/44/.clang-tidy
    M clang-tools-extra/test/clang-tidy/infrastructure/dump-config-invalid.cpp

  Log Message:
  -----------
  [clang-tidy][NFC] Update tests to CheckOptions using new syntax

This patch is just updating all test files to use the new syntax.
Fix for changes introduced after D130209 were created.


Compare: https://github.com/llvm/llvm-project/compare/0f99bc2d685c...1af159e98c23


More information about the All-commits mailing list