[all-commits] [llvm/llvm-project] 1ad1f9: [clang-tidy] Add readability-redundant-casting che...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Sat Jan 20 01:11:16 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ad1f981a62213c1fc3145e8330f3c9b0dbe2b85
      https://github.com/llvm/llvm-project/commit/1ad1f981a62213c1fc3145e8330f3c9b0dbe2b85
  Author: Piotr Zegar <piotr.zegar at nokia.com>
  Date:   2024-01-20 (Sat, 20 Jan 2024)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/CMakeLists.txt
    M clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
    A clang-tools-extra/clang-tidy/readability/RedundantCastingCheck.cpp
    A clang-tools-extra/clang-tidy/readability/RedundantCastingCheck.h
    M clang-tools-extra/clang-tidy/utils/FixItHintUtils.h
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/docs/clang-tidy/checks/readability/redundant-casting.rst
    A clang-tools-extra/test/clang-tidy/checkers/readability/redundant-casting.cpp

  Log Message:
  -----------
  [clang-tidy] Add readability-redundant-casting check (#70595)

Detects explicit type casting operations that involve the same source
and destination types, and subsequently recommend their removal. Covers
a range of explicit casting operations. Its primary objective is to
enhance code readability and maintainability by eliminating unnecessary
type casting.

Closes #67534




More information about the All-commits mailing list