When depend on template parameter,
compiler can use NullStmt instead of CompoundStmt.
This causes issues as we losing information about
end location of that Stmt. To avoid this issue
check now ignores ifStmt with NullStmt on true-branch.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/test/clang-tidy/checkers/readability/misleading-indentation.cpp | ||
---|---|---|
1 ↗ | (On Diff #508346) | We should keep the default value of c++11-or-later, otherwise we are losing coverage on older versions. |
199 ↗ | (On Diff #508346) | I believe the most common way of solving this is creating another test file where you test the c++17-or-later support. Alternatively you'd need to wrap this code in a #if block, plus create another RUN line with a different check-suffix |