We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
DisableFormat: true doesn't turn off SortIncludes (clang-format 5.0):
$ printf '#include \n#include \n' | clang-format -assume-filename=test.cpp -style='{DisableFormat: true}' #include #include
It needs to be explicitly specified as false to turn it off:
$ printf '#include \n#include \n' | clang-format -assume-filename=test.cpp -style='{DisableFormat: true, SortIncludes: false}' #include #include
Not sure if it is intentional or not -- was surprising at the very least.
The text was updated successfully, but these errors were encountered:
Issue persist clang-format 11.0.
Sorry, something went wrong.
Seems confusing to me as well, put in a quick hotfix https://reviews.llvm.org/D101628
Fixed in 61dc0f2
No branches or pull requests
Extended Description
DisableFormat: true doesn't turn off SortIncludes (clang-format 5.0):
$ printf '#include \n#include \n' | clang-format -assume-filename=test.cpp -style='{DisableFormat: true}'
#include
#include
It needs to be explicitly specified as false to turn it off:
$ printf '#include \n#include \n' | clang-format -assume-filename=test.cpp -style='{DisableFormat: true, SortIncludes: false}'
#include
#include
Not sure if it is intentional or not -- was surprising at the very least.
The text was updated successfully, but these errors were encountered: