[all-commits] [llvm/llvm-project] a63309: [clang-tidy] Improve redundant-casting check for b...
Gaurav Dhingra via All-commits
all-commits at lists.llvm.org
Wed May 6 23:18:27 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a63309dffd7da7f07d7f9fb5fb196ad5efe2044d
https://github.com/llvm/llvm-project/commit/a63309dffd7da7f07d7f9fb5fb196ad5efe2044d
Author: Gaurav Dhingra <gauravdhingra.gxyd at gmail.com>
Date: 2026-05-07 (Thu, 07 May 2026)
Changed paths:
M clang-tools-extra/clang-tidy/readability/RedundantCastingCheck.cpp
M clang-tools-extra/clang-tidy/readability/RedundantCastingCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/readability/redundant-casting.rst
M clang-tools-extra/test/clang-tidy/checkers/readability/redundant-casting.cpp
Log Message:
-----------
[clang-tidy] Improve redundant-casting check for binary operation (#191386)
Mark explicit casting as readabily redundant for a BinaryOperation with
atleast one operand of the same type as the cast type in
`RedundantCastingCheck`
E.g.; `static<float>(1 + 2.0f)` // redundant cast
Fixes #182132
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