[all-commits] [llvm/llvm-project] 6121df: [clang-tidy] Correctly handle attributes in readab...
Zeyi Xu via All-commits
all-commits at lists.llvm.org
Thu Mar 12 16:40:33 PDT 2026
Branch: refs/heads/release/22.x
Home: https://github.com/llvm/llvm-project
Commit: 6121df77a781d2e6f9a8e569aa45ccfffd6c7e0e
https://github.com/llvm/llvm-project/commit/6121df77a781d2e6f9a8e569aa45ccfffd6c7e0e
Author: mitchell <mitchell.xu2 at gmail.com>
Date: 2026-03-12 (Thu, 12 Mar 2026)
Changed paths:
M clang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
M clang-tools-extra/clang-tidy/readability/InconsistentIfElseBracesCheck.cpp
M clang-tools-extra/clang-tidy/utils/BracesAroundStatement.cpp
M clang-tools-extra/test/clang-tidy/checkers/readability/inconsistent-ifelse-braces-attributes.cpp
Log Message:
-----------
[clang-tidy] Correctly handle attributes in readability-inconsistent-ifelse-braces (#184095)
Improved the check to correctly handle `[[likely]]` and `[[unlikely]]`
attributes placed between the if/else keyword and the opening brace.
As of AI Usage: Gemini 3 is used for pre-commit reviewing.
Closes https://github.com/llvm/llvm-project/issues/184081
(cherry picked from commit ca1eefdfc061fc062b6b9dc4149ca4a0e51bde08)
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