[all-commits] [llvm/llvm-project] 1e14ed: [clang-tidy] Address false positives in misc-redun...
earnol via All-commits
all-commits at lists.llvm.org
Mon Feb 10 10:16:59 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1e14edb8981326e18509409be5c95e0c8c740891
https://github.com/llvm/llvm-project/commit/1e14edb8981326e18509409be5c95e0c8c740891
Author: earnol <earnol at users.noreply.github.com>
Date: 2025-02-10 (Mon, 10 Feb 2025)
Changed paths:
M clang-tools-extra/clang-tidy/misc/RedundantExpressionCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/misc/redundant-expression.rst
M clang-tools-extra/test/clang-tidy/checkers/misc/redundant-expression.cpp
Log Message:
-----------
[clang-tidy] Address false positives in misc-redundant-expression checker (#122841)
This patch addresses situations when misc-redundant-expression checker
provides excessive diagnostics for situations with different macros
having the same value. In particular it addresses situations described
in the initial report of
https://github.com/llvm/llvm-project/issues/118885 are addressed. The
situations which are popped inside discussion like if (A + B == B + A)
for macros are not properly addressed by this patch.
Those changes are also mentioned in Release Notes.
---------
Co-authored-by: Vladislav Aranov <vladislav.aranov at ericsson.com>
Co-authored-by: EugeneZelenko <eugene.zelenko at gmail.com>
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