This is intended to provide a hint for how to fix the bug. The patch fixes the bug itself, but a problem remains.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
What is the problem that remains?
Please add a test case.
| clang/lib/Format/UnwrappedLineParser.cpp | ||
|---|---|---|
| 1142–1143 | Could you remove the negation? I find negations of compound statements always harder to read. | |
Comment Actions
The problem that remains is this, as I explained in the issue. The second branch of the second block is not indented.
#if 1
{
#endif
#if X
x;
#else
x;
#endif
}I didn't add a test case because I was not expecting this patch to be committed as there is still a problem.
Could you remove the negation? I find negations of compound statements always harder to read.