| Issue |
244124
|
| Summary |
[clang-format] SortIncludes setting in config file ignored in language C
|
| Labels |
|
| Assignees |
|
| Reporter |
KrisThielemans
|
I am trying to set sorting of include files off. I've tried the following .clang-format settings
```
---
BasedOnStyle : GNU
---
Language : C
SortIncludes: false
```
or
```
SortIncludes: Never
```
or
```
SortIncludes:
Enabled: false
IgnoreCase: false
IgnoreExtension: false
```
or adding `--sort-includes=0` to the cmdline.
None of them works.
Just replacing `C` with `Cpp` in either of these and everything is fine. (The first 2 are undocumented, are probably older ways of writing this but still work for Cpp).
PS: easiest way to test:
```sh
clang-format --dump-config --style=file:test3.clang |grep -A 3 SortI
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs