Commit Graph

10 Commits

Author SHA1 Message Date
David Capello
28043e8305 [clang-format] Change SpacesBeforeTrailingComments=1 2024-12-12 19:15:20 -03:00
David Capello
b38a3c03eb [clang-format] Change AllowAllArgumentsOnNextLine=false
With this we prefer to format function calls as:

  int value = function(arg1,
                       arg2,
                       arg3);

Or:

  int value =
    function(arg1, arg2, arg3);

Rather than:

  int value = function(
    arg1, arg2, arg3);
2024-12-12 19:03:04 -03:00
David Capello
215f22cce3 [clang-format] New ColumnLimit=100 and new penalty weights
Making PenaltyBreakAssignment bigger creates better looking
const/variable declarations, where the following term to the
assignment operator is in the same line.
2024-12-12 18:38:53 -03:00
David Capello
8cf1a185b6 [clang-format] Set AlignArrayOfStructures: Left
We get better results when defining command Params and scripting
structures (methods/properties).
2024-12-12 16:28:52 -03:00
David Capello
aff027dcf4 Update clang-format config with --dump-config (clang-format v19.1.5) 2024-12-12 15:52:32 -03:00
Christian Kaiser
2f0c107c3b Sort clang-format file 2024-12-12 13:44:52 -03:00
David Capello
8e1eee3b9c Enable clang-format config for C++ and Objective-C files 2024-12-11 16:27:07 -03:00
David Capello
fa79619c16 Update clang-format file 2023-05-24 14:23:42 -03:00
David Capello
18bbc271a1 Some minor clang-format adjustments
We're not using clang-format yet but there are plans to do it in a
near future.
2022-10-12 16:04:04 -03:00
David Capello
dc1c41f176 Add initial .clang-format
Maybe it's not the final version, but it's a good start. We cannot
match the coding style that we were using, but it's pretty close.
We'll start applying clang-format incrementally in a near future.
2021-08-27 19:17:27 -03:00