[all-commits] [llvm/llvm-project] b0cb33: [clang-tidy] Avoid brace fix-it crash in macro bod...
Zeyi Xu via All-commits
all-commits at lists.llvm.org
Thu Jun 4 01:29:28 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b0cb331995d494dda75d5fd967e160ec0c32caf1
https://github.com/llvm/llvm-project/commit/b0cb331995d494dda75d5fd967e160ec0c32caf1
Author: Zeyi Xu <mitchell.xu2 at gmail.com>
Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths:
M clang-tools-extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
M clang-tools-extra/clang-tidy/utils/BracesAroundStatement.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/test/clang-tidy/checkers/readability/braces-around-statements-same-line.cpp
M clang-tools-extra/test/clang-tidy/checkers/readability/braces-around-statements.cpp
Log Message:
-----------
[clang-tidy] Avoid brace fix-it crash in macro body expansion (#198788)
`readability-braces-around-statements `could assert when diagnosing an
unbraced statement that ends in the middle of a macro body expansion. It
would be hard/unsafe to give fix-its for such cases, so treat them as
diagnostic-only.
Closes https://github.com/llvm/llvm-project/issues/198711
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