mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
2 lines
55 B
YAML
2 lines
55 B
YAML
BasedOnStyle: LLVM
|
|
AlwaysBreakTemplateDeclarations: Yes |