-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set the indent after #define #105
Comments
It seems like the continuation of the macro is treated as a new indentation level by clang-format, like adding another pair of { } would too. But ultimately, not much that this plugin can do for you in this scenario, I think. |
@Kypert |
Would you mind share the exact style_options? Did you make sure that you used |
@Kypert the following is my settings now, BreakBeforeBraces is 'Allman'
the following is my test settings, |
Sorry, i missed this reply. Yearly update :) From my understanding, the When it comes to the indent after the escaped-newline in a macro, I think you have to turn to clang-format and request this option. I too am unable to find the suitable option knob for that in current clang-format version (was checking clang11). |
I read the http://clang.llvm.org/docs/ClangFormatStyleOptions.html and do lots of test , but I don't know how to set the following style:
don't care about the '\', it is correct on my pc ,and I don't know how to make it correct in the markdown.
expect:
now:
The text was updated successfully, but these errors were encountered: