diff options
author | Daniel Jasper <djasper@google.com> | 2013-07-09 14:36:48 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-07-09 14:36:48 +0000 |
commit | 6cdec7cf0558797ece82be6e7a1ca76791cf2672 (patch) | |
tree | c3d0f0e26d13d0af344f795a87ec461e82234356 /clang/lib/Format/Format.cpp | |
parent | 8115e1da91584ff2edd0e1c1bd0310cc4601d177 (diff) | |
download | bcm5719-llvm-6cdec7cf0558797ece82be6e7a1ca76791cf2672.tar.gz bcm5719-llvm-6cdec7cf0558797ece82be6e7a1ca76791cf2672.zip |
Initial support for formatting trailing return types.
This fixes llvm.org/PR15170.
For now, the basic formatting rules are (based on the C++11 standard):
* Surround the "->" with spaces.
* Break before "->".
Also fix typo.
llvm-svn: 185938
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index fb931490dc7..b6b726cfb21 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -674,7 +674,7 @@ private: State.Stack.back().Indent = State.Column; else if (Previous.opensScope()) { // If a function has multiple parameters (including a single parameter - // that is a binary expression) or a trailing call, indented all + // that is a binary expression) or a trailing call, indent all // parameters from the opening parenthesis. This avoids confusing // indents like: // OuterFunction(InnerFunctionCall( |