diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-03-19 10:39:34 -0700 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-03-21 09:50:09 -0700 |
commit | 90652b9066af2e1fa72be3ba91fceea83f3af23f (patch) | |
tree | d164b1d08c0a186d5b2d174c9f5b7cf75851da11 | |
parent | 864d4002db7962600d3e0f3e0db118de8f6f9f47 (diff) | |
download | uhd-90652b9066af2e1fa72be3ba91fceea83f3af23f.tar.gz uhd-90652b9066af2e1fa72be3ba91fceea83f3af23f.tar.bz2 uhd-90652b9066af2e1fa72be3ba91fceea83f3af23f.zip |
clang-format: Break after templates
Before, code would get formatted thus:
template <typename T> class X {}
Now, it gets formatted as such:
template <typename T>
class X {}
-rw-r--r-- | .clang-format | 2 | ||||
-rw-r--r-- | host/include/.clang-format | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.clang-format b/.clang-format index 6e9ab97ca..343f2a6c5 100644 --- a/.clang-format +++ b/.clang-format @@ -15,7 +15,7 @@ AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false -AlwaysBreakTemplateDeclarations: false +AlwaysBreakTemplateDeclarations: true BinPackArguments: false BinPackParameters: false BreakBeforeBinaryOperators: NonAssignment diff --git a/host/include/.clang-format b/host/include/.clang-format index c8aad70cc..e2dc7e0a7 100644 --- a/host/include/.clang-format +++ b/host/include/.clang-format @@ -15,7 +15,7 @@ AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false -AlwaysBreakTemplateDeclarations: false +AlwaysBreakTemplateDeclarations: true BinPackArguments: false BinPackParameters: false BreakBeforeBinaryOperators: NonAssignment |