[all-commits] [llvm/llvm-project] 15750a: [clang-tidy] Use --match-full-lines instead of --s...

Nicolas van Kempen via All-commits all-commits at lists.llvm.org
Mon Apr 7 13:34:29 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 15750a0ab2356bea9544b70a72edce421060086e
      https://github.com/llvm/llvm-project/commit/15750a0ab2356bea9544b70a72edce421060086e
  Author: Nicolas van Kempen <nvankemp at gmail.com>
  Date:   2025-04-07 (Mon, 07 Apr 2025)

  Changed paths:
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/check_clang_tidy.py
    M clang-tools-extra/test/clang-tidy/checkers/abseil/duration-addition.cpp
    M clang-tools-extra/test/clang-tidy/checkers/abseil/duration-comparison.cpp
    M clang-tools-extra/test/clang-tidy/checkers/abseil/duration-conversion-cast.cpp
    M clang-tools-extra/test/clang-tidy/checkers/abseil/duration-factory-float.cpp
    M clang-tools-extra/test/clang-tidy/checkers/abseil/duration-factory-scale.cpp
    M clang-tools-extra/test/clang-tidy/checkers/abseil/duration-subtraction.cpp
    M clang-tools-extra/test/clang-tidy/checkers/abseil/duration-unnecessary-conversion.cpp
    M clang-tools-extra/test/clang-tidy/checkers/abseil/redundant-strcat-calls.cpp
    M clang-tools-extra/test/clang-tidy/checkers/abseil/time-comparison.cpp
    M clang-tools-extra/test/clang-tidy/checkers/abseil/time-subtraction.cpp
    M clang-tools-extra/test/clang-tidy/checkers/abseil/upgrade-duration-conversions.cpp
    M clang-tools-extra/test/clang-tidy/checkers/altera/struct-pack-align.cpp
    M clang-tools-extra/test/clang-tidy/checkers/android/cloexec-memfd-create.cpp
    M clang-tools-extra/test/clang-tidy/checkers/android/cloexec-open.cpp
    M clang-tools-extra/test/clang-tidy/checkers/android/cloexec-socket.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/incorrect-enable-shared-from-this.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/move-forwarding-reference.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/not-null-terminated-result-in-initialization-strlen.c
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/not-null-terminated-result-memcpy-safe-cxx.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/not-null-terminated-result-strlen.c
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/not-null-terminated-result-wcslen.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/posix-return.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/standalone-empty.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/stringview-nullptr.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/suspicious-string-compare.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone/swapped-arguments.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/prefer-member-initializer.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-bounds-constant-array-index.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.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/virtual-class-destructor.cpp
    M clang-tools-extra/test/clang-tidy/checkers/google/build-explicit-make-pair.cpp
    M clang-tools-extra/test/clang-tidy/checkers/google/objc-avoid-nsobject-new.m
    M clang-tools-extra/test/clang-tidy/checkers/google/upgrade-googletest-case.cpp
    M clang-tools-extra/test/clang-tidy/checkers/llvm/prefer-isa-or-dyn-cast-in-conditionals.cpp
    M clang-tools-extra/test/clang-tidy/checkers/llvm/prefer-register-over-unsigned.cpp
    M clang-tools-extra/test/clang-tidy/checkers/llvm/prefer-register-over-unsigned2.cpp
    M clang-tools-extra/test/clang-tidy/checkers/llvm/prefer-register-over-unsigned3.cpp
    M clang-tools-extra/test/clang-tidy/checkers/llvm/twine-local.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-pointer-as-pointers.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-values-before-cxx23.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-values.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/definitions-in-headers.hpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/unused-parameters.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/avoid-bind.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/concat-nested-namespaces.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/loop-convert-basic.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-const.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/loop-convert-extra.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-rewritten-binop.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.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/make-unique.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/min-max-use-initializer-list.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/pass-by-value.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/redundant-void-arg.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/replace-auto-ptr.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/type-traits.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-for-pointer.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-auto-iterator.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-equals-default-copy.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-integer-sign-comparison-qt.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-integer-sign-comparison.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-nullptr.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-override.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-starts-ends-with.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-format-fmt.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-format.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-std-print.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-using.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.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/noexcept-move-constructor-fix.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/unnecessary-copy-initialization.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/unnecessary-value-param-delayed.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance/unnecessary-value-param.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/braces-around-statements.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/const-return-type.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/container-size-empty.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/implicit-bool-conversion.c
    M clang-tools-extra/test/clang-tidy/checkers/readability/implicit-bool-conversion.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/math-missing-parentheses.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/simplify-boolean-expr-members.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/simplify-boolean-expr.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/uppercase-literal-suffix-integer-custom-list.cpp
    M clang-tools-extra/test/clang-tidy/infrastructure/duplicate-conflicted-fixes-of-alias-checkers.cpp
    M clang-tools-extra/test/clang-tidy/infrastructure/duplicate-fixes-of-alias-checkers.cpp

  Log Message:
  -----------
  [clang-tidy] Use --match-full-lines instead of --strict-whitespace in check_clang_tidy (#133756)

See Discourse post here:
https://discourse.llvm.org/t/rfc-using-match-full-lines-in-clang-tidy-tests/85553

I've added `--match-partial-fixes` to all tests that were failing,
unless I noticed the fix was quick and trivial.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list