[all-commits] [llvm/llvm-project] 4b85c1: [clang-tidy] Fix false positive in readability-red...
Aditya Singh via All-commits
all-commits at lists.llvm.org
Tue Mar 3 19:57:53 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4b85c1301fb61c6965a5143113f5170a4b062e3a
https://github.com/llvm/llvm-project/commit/4b85c1301fb61c6965a5143113f5170a4b062e3a
Author: Aditya Singh <aditya26189 at kgpian.iitkgp.ac.in>
Date: 2026-03-04 (Wed, 04 Mar 2026)
Changed paths:
M clang-tools-extra/clang-tidy/readability/RedundantPreprocessorCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/test/clang-tidy/checkers/readability/redundant-preprocessor.cpp
Log Message:
-----------
[clang-tidy] Fix false positive in readability-redundant-preprocessor for builtin checks (#181734)
Different `__has_builtin()` checks were incorrectly flagged as redundant
because ConditionRange collapsed after macro expansion. It now reads
condition text directly from source to fix this.
Assisted-by: Claude
Fixes #64825
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