diff options
author | Daniel Jasper <djasper@google.com> | 2013-02-24 18:54:32 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-02-24 18:54:32 +0000 |
commit | 3c08a818a6ac9115fe8880af9bbf5a0a87bdffaa (patch) | |
tree | 71d8f4b480a6ebe59924a08aee7323aa08318d60 /test/CodeGenCXX/reference-cast.cpp | |
parent | 960876cd88a9aba546345dec49a1cf9a4f248356 (diff) |
Allow breaking between a type and name in variable declarations.
This fixes llvm.org/PR14967 and is generall necessary to avoid
situations where the column limit is exceeded. The challenge is
restricting such lines splits, otherwise clang-format suddenly starts
breaking at bad places.
Before:
ReallyLongReturnType<TemplateParam1, TemplateParam2>
ReallyReallyLongFunctionName(
const std::string &SomeParameter,
const SomeType<string,
SomeOtherTemplateParameter> &ReallyReallyLongParameterName,
const SomeType<string,
SomeOtherTemplateParameter> &AnotherLongParameterName) {}
After:
ReallyLongReturnType<TemplateParam1, TemplateParam2>
ReallyReallyLongFunctionName(
const std::string &SomeParameter,
const SomeType<string, SomeOtherTemplateParameter> &
ReallyReallyLongParameterName,
const SomeType<string, SomeOtherTemplateParameter> &
AnotherLongParameterName) {}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175999 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/reference-cast.cpp')
0 files changed, 0 insertions, 0 deletions