Skip to content
Commit 9b6859dc authored by Congcong Cai's avatar Congcong Cai
Browse files

[clang-tidy][readability-braces-around-statements] ignore false-positive for...

[clang-tidy][readability-braces-around-statements] ignore false-positive for constexpr if statement in lambda expression

Fixed: #64545

When TreeTransform, Stmt in constexpr IfStmt will be transform to NullStmt.
This NullStmt has the different beginning token.
This patch add addtional check in checkStmt to handle this case.

Reviewed By: PiotrZSL

Differential Revision: https://reviews.llvm.org/D158480
parent 097efdd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment