Gleb Mazovetskiy
37c7a2237b
.clang-format: Remove duplicate SortIncludes entry
4 years ago
Gleb Mazovetskiy
9ac78d0352
clang-format: Enable `SortIncludes`
...
We use the value of `true` instead of `CaseSensitive` for compatibility
with older clang-format versions (< 13). They are equivalent.
4 years ago
Anders Jenbo
b28a5d2d08
🔨 Align .clang-format files
5 years ago
Anders Jenbo
312168d4c1
Reformat the .clang-format files
...
These files are YAML, changes to a more idiomatic YAML syntax
6 years ago
Anders Jenbo
94f7b179e2
Stop clang_format from breaking compiling
7 years ago
Anders Jenbo
b1f6d3698f
Update style to use tabs
7 years ago
Anders Jenbo
72a13f1d26
Make .clang-format compatible with older versions
8 years ago
Robin Eklind
e18a70f82b
Use .clang-format config instead of -style command line settings.
...
The Source/.clang-format config is used for *.cpp files.
The root .clang-format config is used for *.h files.
8 years ago
Robin Eklind
892e84136e
Add Devilution specific config values for clang-format.
...
* AlignTrailingComments: true
* AllowShortBlocksOnASingleLine: true
* AllowShortFunctionsOnASingleLine: None
* PointerAlignment: Right
Note, currently, the format.sh script uses the config file
for .cpp files. The `AlignConsecutiveAssignments: true` setting
is specifically added for .h files.
I could not find a way to specify what config file to use
for clang-format. So, for now, the config file is used for
.cpp.
8 years ago
Robin Eklind
fed3f265af
Add default clang-format config for WebKit.
...
Generated as follows:
$ clang-format --version
clang-format version 7.0.0 (tags/RELEASE_700/final)
$ clang-format -style=webkit -dump-config > .clang-format
8 years ago