- Formatting at multiple lines.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I'm confused -- the issue you linked is for a bug with clang-format but the changes in your patch don't modify clang-format, just modifies a test file to be formatted. I don't see how the two relate, but this doesn't seem to be addressing the issue you linked.
okay now i understand the issue completely.
If i just mentioned that i am formatting a test file it would be correct then according to my patch.
We don't typically reformat whole files for no reason (it adds churn to the code base which makes things like git blame harder to use). We will accept a reformat like this when there's going to be immediate follow-up work in the file where having it properly formatted will make the second code review easier to understand, but that doesn't sound like the case here.
You are not supposed to format the test, because the comment is actually something we called regression tests. If you reformat it (put it in the wrong place), the test will fail.
Pardon, it was my mistake i didn't see that the file i was amending was actually a test file i just search "switch" statement in my script.
Closed as:
- Formating test file causes build to fail.
- Formatting of whole page is not accpeted in LLVM as it created problem future with commands like git blame .