4 Commits

Author SHA1 Message Date
Varun Gandhi
d356abcf77 Update .clang-format for YAML 1.2.
YAML 1.2 seems to have removed some implicit typing rules, such
as treating Yes as true.
2021-06-01 11:44:10 -07:00
Thorsten Schütt
79728f8eb5 Add missing line-break in .clang-format 2021-02-01 08:48:16 +01:00
Michael Gottesman
cba4801f34 [clang-format] Change the clang-format style to always break on template declarations.
Specifically, I am changin about is called BreakTemplateDeclarationsStyle from
BTDS_No (the current value) to BTDS_Yes. The two differences are:

```
BTDS_No (in configuration: No) Do not force break before declaration. PenaltyBreakTemplateDeclaration is taken into account.
template <typename T> T foo() {
}
template <typename T> T foo(int aaaaaaaaaaaaaaaaaaaaa,
                            int bbbbbbbbbbbbbbbbbbbbb) {
}
```

```
BTDS_Yes (in configuration: Yes) Always break after template declaration.
template <typename T>
T foo() {
}
template <typename T>
T foo(int aaaaaaaaaaaaaaaaaaaaa,
      int bbbbbbbbbbbbbbbbbbbbb) {
}
```

If one looks at the code base, most templates already look like BTDS_Yes except
for instances where clang-format performed it. Change the clang-format style to
stop this from happening incrementally.
2021-01-31 12:59:29 -08:00
Dmitri Hrybenko
f8fa982c84 Add a .clang-format file
Swift SVN r13910
2014-02-14 15:02:42 +00:00