<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emscripten-fastcomp-clang/lib/Format, branch master</title>
<subtitle>emscripten clang</subtitle>
<id>https://git.amat.us/emscripten-fastcomp-clang/atom/lib/Format?h=master</id>
<link rel='self' href='https://git.amat.us/emscripten-fastcomp-clang/atom/lib/Format?h=master'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp-clang/'/>
<updated>2013-05-06T14:11:27Z</updated>
<entry>
<title>Added Mozilla style, cleaned get*Style methods.</title>
<updated>2013-05-06T14:11:27Z</updated>
<author>
<name>Alexander Kornienko</name>
<email>alexfh@google.com</email>
</author>
<published>2013-05-06T14:11:27Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp-clang/commit/?id=fb59486ef3624d09896b09a978b28eb63cfd3c46'/>
<id>urn:sha1:fb59486ef3624d09896b09a978b28eb63cfd3c46</id>
<content type='text'>
Summary: Patch based on a patch by Ehsan Akhgari.

Reviewers: djasper

Reviewed By: djasper

CC: cfe-commits, klimek

Differential Revision: http://llvm-reviews.chandlerc.com/D750

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181196 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Don't break comments after includes.</title>
<updated>2013-05-06T10:24:51Z</updated>
<author>
<name>Daniel Jasper</name>
<email>djasper@google.com</email>
</author>
<published>2013-05-06T10:24:51Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp-clang/commit/?id=7ff96ed7336b4f0efef05c10fd5ce5143918d4e1'/>
<id>urn:sha1:7ff96ed7336b4f0efef05c10fd5ce5143918d4e1</id>
<content type='text'>
LLVM/Clang basically don't use such comments and for Google-style,
include-lines are explicitly exempt from the column limit. Also, for
most cases, where the column limit is violated, the "better" solution
would be to move the comment to before the include, which clang-format
cannot do (yet).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181191 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Change indentation when breaking after a type.</title>
<updated>2013-05-06T08:27:33Z</updated>
<author>
<name>Daniel Jasper</name>
<email>djasper@google.com</email>
</author>
<published>2013-05-06T08:27:33Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp-clang/commit/?id=53e72cdcc0bc217cab33fa56858a0fe5b94ca453'/>
<id>urn:sha1:53e72cdcc0bc217cab33fa56858a0fe5b94ca453</id>
<content type='text'>
clang-format did not indent any declarations/definitions when breaking
after the type. With this change, it indents for all declarations but
does not indent for function definitions, i.e.:

Before:
const SomeLongTypeName&amp;
some_long_variable_name;
typedef SomeLongTypeName
SomeLongTypeAlias;
const SomeLongReturnType*
SomeLongFunctionName();
const SomeLongReturnType*
SomeLongFunctionName() { ... }

After:
const SomeLongTypeName&amp;
    some_long_variable_name;
typedef SomeLongTypeName
    SomeLongTypeAlias;
const SomeLongReturnType*
    SomeLongFunctionName();
const SomeLongReturnType*
SomeLongFunctionName() { ... }

While it might seem inconsistent to indent function declarations, but
not definitions, there are two reasons for that:
- Function declarations are very similar to declarations of function
type variables, so there is another side to consistency to consider.
- There can be many function declarations on subsequent lines and not
indenting can make them harder to identify. Function definitions
are already separated by their body and not indenting
makes the function name slighly easier to find.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181187 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Break the class-inheritance ":" to the new line.</title>
<updated>2013-05-06T06:45:09Z</updated>
<author>
<name>Daniel Jasper</name>
<email>djasper@google.com</email>
</author>
<published>2013-05-06T06:45:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp-clang/commit/?id=c194c95036b7bf1281a6f2ed683f7c85ee5d2c20'/>
<id>urn:sha1:c194c95036b7bf1281a6f2ed683f7c85ee5d2c20</id>
<content type='text'>
This seems to be more common in LLVM, Google and Chromium.

Before:
class AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA :
    public BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB,
    public CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC {
};

After:
class AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    : public BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB,
      public CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC {
};

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181183 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Don't put a space before ellipsis.</title>
<updated>2013-05-06T06:35:44Z</updated>
<author>
<name>Daniel Jasper</name>
<email>djasper@google.com</email>
</author>
<published>2013-05-06T06:35:44Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp-clang/commit/?id=f022018698ced7e538b338d4f7befef9f81051ea'/>
<id>urn:sha1:f022018698ced7e538b338d4f7befef9f81051ea</id>
<content type='text'>
Before: template &lt;class ... Ts&gt; void Foo(Ts ... ts) { Foo(ts ...); }
After:  template &lt;class... Ts&gt; void Foo(Ts... ts) { Foo(ts...); }

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181182 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Add space between ; and (.</title>
<updated>2013-05-03T14:50:50Z</updated>
<author>
<name>Daniel Jasper</name>
<email>djasper@google.com</email>
</author>
<published>2013-05-03T14:50:50Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp-clang/commit/?id=454cb70f9470dc37d0c0646012877d64fb1e73d7'/>
<id>urn:sha1:454cb70f9470dc37d0c0646012877d64fb1e73d7</id>
<content type='text'>
Before: for (int i = 0;(i &lt; 10); ++i) {}
After:  for (int i = 0; (i &lt; 10); ++i) {}

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181020 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Fix expression recognition in for-loops.</title>
<updated>2013-05-03T14:41:24Z</updated>
<author>
<name>Daniel Jasper</name>
<email>djasper@google.com</email>
</author>
<published>2013-05-03T14:41:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp-clang/commit/?id=16a69ef481f4580c571b6c693a5d3dd64ea56b53'/>
<id>urn:sha1:16a69ef481f4580c571b6c693a5d3dd64ea56b53</id>
<content type='text'>
Before: for (; a&amp;&amp; b;) {}
After:  for (; a &amp;&amp; b;) {}

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181017 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Improve clang-format's memoization behavior.</title>
<updated>2013-04-25T13:31:51Z</updated>
<author>
<name>Daniel Jasper</name>
<email>djasper@google.com</email>
</author>
<published>2013-04-25T13:31:51Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp-clang/commit/?id=fca24bc45192c254ca92ef1d7cef71a290392f31'/>
<id>urn:sha1:fca24bc45192c254ca92ef1d7cef71a290392f31</id>
<content type='text'>
Deeply nested expressions basically break clang-format's memoization.
This patch slightly improves the situations and makes expressions like

  aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(
      aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(
          aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(
              aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(aaaaa(
                  aaaaa(aaaaa())))))))))))))))))))))))))))))))))))))));

work.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180264 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Add option to align escaped newlines left.</title>
<updated>2013-04-25T08:56:26Z</updated>
<author>
<name>Daniel Jasper</name>
<email>djasper@google.com</email>
</author>
<published>2013-04-25T08:56:26Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp-clang/commit/?id=2972d049637349bb82f52a27ad3337cf4ab769b4'/>
<id>urn:sha1:2972d049637349bb82f52a27ad3337cf4ab769b4</id>
<content type='text'>
This enables formattings like:

  #define A   \
    int aaaa; \
    int b;    \
    int ccc;  \
    int dddddddddd;

Enabling this for Google/Chromium styles only as I don't know whether it
is desired for Clang/LLVM.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180253 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Flip flag to merge short if-statements into one line for Google style.</title>
<updated>2013-04-24T13:46:00Z</updated>
<author>
<name>Daniel Jasper</name>
<email>djasper@google.com</email>
</author>
<published>2013-04-24T13:46:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp-clang/commit/?id=94d6ad7b65b59f834bbc40e0caed5ceebca11932'/>
<id>urn:sha1:94d6ad7b65b59f834bbc40e0caed5ceebca11932</id>
<content type='text'>
This now allows clang-format to do:
if (a) return;

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180187 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
</feed>
