The EndLoc parameter was always unset so no fixit was emitted. But it is also unnecessary for determining the range so we can remove it.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
No need to add '#' for the fixit since we have the range of the directive identifier to fix.
Good catch, thank you for fixing this up! LGTM!
clang/test/Preprocessor/suggest-typoed-directive.c | ||
---|---|---|
14–15 | You can remove this -- we don't require test files to be formatted properly, and formatting comments can quickly become distracting. |
clang/test/Preprocessor/suggest-typoed-directive.c | ||
---|---|---|
14–15 | The debian bot failed for this patch with clang-format complaining about the test file. Was this unintentional? |
clang/test/Preprocessor/suggest-typoed-directive.c | ||
---|---|---|
14–15 | For reference the bot failure is here: https://buildkite.com/llvm-project/premerge-checks/builds/96481#01814013-61ed-4a53-a9d0-4d1a183ac360 |
clang/test/Preprocessor/suggest-typoed-directive.c | ||
---|---|---|
14–15 | Yeah -- the precommit CI bots still check it and report back failures, which is incredibly frustrating given how much noise that generates. I've filed https://github.com/llvm/llvm-project/issues/55982 to track that. |
You can remove this -- we don't require test files to be formatted properly, and formatting comments can quickly become distracting.