summaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-07-09 14:36:48 +0000
committerDaniel Jasper <djasper@google.com>2013-07-09 14:36:48 +0000
commit2ca3741a962ded08866596577aaee2f4ab74c955 (patch)
tree5687532bf2d63c14034b59bc3079c30dc9d2de09 /lib/Format/Format.cpp
parent4549d7ffc15bdd7ab860aa68db089d9f559b79e7 (diff)
downloadclang-2ca3741a962ded08866596577aaee2f4ab74c955.tar.gz
clang-2ca3741a962ded08866596577aaee2f4ab74c955.tar.bz2
clang-2ca3741a962ded08866596577aaee2f4ab74c955.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index fb931490dc..b6b726cfb2 100644
--- a/lib/Format/Format.cpp
+++ b/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(