summaryrefslogtreecommitdiffstats
path: root/.clang-format
Commit message (Collapse)AuthorAgeFilesLines
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-1/+1
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Style: clang-format: Disable AllowShortCaseLabelsOnASingleLineRémi Verschelde2020-05-101-1/+1
| | | | Part of #33027.
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-1/+1
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* clang-format: Add JavaImportGroups for Java codeRémi Verschelde2020-05-061-0/+1
|
* Style: Set clang-format Standard to Cpp11Rémi Verschelde2020-03-171-2/+2
| | | | | | | | | | For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
* clang-format: Set standard for ObjC++Rémi Verschelde2019-02-091-0/+1
|
* Style: Format code with clang-format 6.0.1Rémi Verschelde2018-07-181-1/+8
|
* Style: Apply clang-format to Java filesRémi Verschelde2017-12-101-1/+4
| | | | Only those from org/godotengine/godot though, not the thirdparty ones.
* Style: Update definitions for clang-format 5.0.0Rémi Verschelde2017-12-071-16/+34
| | | | This will be the new standard from now on.
* Style: Add .clang-format based on LLVM styleRémi Verschelde2017-02-111-0/+98
Adapted some parameters to fit the de facto Godot style as closely as possible (tab indentation, long lines with no wrapping - for now -, indented case labels, left-aligned pointer operators).