-
Notifications
You must be signed in to change notification settings - Fork 287
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
Option -sort-includes #112
Comments
Yes, that's a good idea. In the meantime, you can always refer to Clang-Format Style Options to see how to enable/disable features in the clang-format binary itself. |
To answer whether it does this… it doesn't specify it, but perhaps this is the default in the upstream binary? |
It's a bit of a mistery to me what's actually going on here. The "official" clang format plugin for visual studio has explicit mention of a -sort-includes parameter given: I can't seem to find that in the sources here (maybe i'm not looking well enough?). I wonder if behavior is different between platforms, or if it's just a matter of which version you use. |
This is just an Xcode plugin that calls through to the This plugin is not clang format, so there wouldn't be any mention of a specific config option here. |
It was my understanding however that it's disabled by default on the command-line. I'm trying to figure out what's causing it to get enabled. My configuration file has no mention of this. I found this from chromium: Where they mention that header sorting is disabled if the Chromium style is used, I guess possible through There seems to be a lot of scattered information about this topic all over the place with no clear consensus about the actual default behavior of this. |
Does this plugin run clang formatter with -sort-includes? If so, could an option be added to disable this? When using clang formatter through this plugin, all my headers get shuffled around causing the code to break. I don't have this issue when running clang-format manually on my files.
The text was updated successfully, but these errors were encountered: