diff options
| author | Daniel Jasper <djasper@google.com> | 2016-02-11 06:43:01 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2016-02-11 06:43:01 +0000 |
| commit | 88db760e4b6dc781273f6ee6a263bf6e81691873 (patch) | |
| tree | 8d1ad3b720ef4acb5313434982af9916fc7434c2 /clang/lib/Format | |
| parent | 7f550f3dbbb88fc660350301e6dcdce4bfba9be1 (diff) | |
| download | bcm5719-llvm-88db760e4b6dc781273f6ee6a263bf6e81691873.tar.gz bcm5719-llvm-88db760e4b6dc781273f6ee6a263bf6e81691873.zip | |
clang-format: Make it more expensive to break template parameters.
In particular, make it more expensive than breaking after the return
type of a function definition/declaration.
Before:
template <typename T>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaa<
T>::aaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaa);
After:
template <typename T>
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaa<T>::aaaaaaaaaaaaa(
aaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaa);
llvm-svn: 260497
Diffstat (limited to 'clang/lib/Format')
| -rw-r--r-- | clang/lib/Format/TokenAnnotator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp index a53cceb9a30..9dcda5d3839 100644 --- a/clang/lib/Format/TokenAnnotator.cpp +++ b/clang/lib/Format/TokenAnnotator.cpp @@ -59,7 +59,7 @@ private: FormatToken *Left = CurrentToken->Previous; Left->ParentBracket = Contexts.back().ContextKind; - ScopedContextCreator ContextCreator(*this, tok::less, 10); + ScopedContextCreator ContextCreator(*this, tok::less, 12); // If this angle is in the context of an expression, we need to be more // hesitant to detect it as opening template parameters. |

