petertorelli/clang-format-barr-c

Pre-processor indentation affects nearby comment spacing

simoneruffini opened this issue · 1 comments

Is there a way to disable at all indentation of nearby comments or everything near preprocessor?

I'm not sure: clang-format is quite a beast and there are thousands of open issues on their github page. You can turn off clang-format using // clang-format off, but that means adding two lines (on/off) everywhere this is an issue. I realize this issue is a year old, but have you tried adding blank lines to see if clang-format can take a hint? Also, please include an example of "bad" vs "expected" so I have a better idea of the issue.