llvm-project/clang/unittests
Manuel Klimek 0ddd57a17b Fixes layout of right braces.
We now decide whether a newline should go before the closing brace
depending on whether a newline was inserted after the opening brace.

For example, we now insert a newline before '};' in:
static SomeClass WithALoooooooooooooooooooongName = {
  100000000, \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"
};
... while not inserting a newline here:
static SomeClass = { a, b, c, d, e, f, g, h, i, j,
                     looooooooooooooooooooooooooooooooooongname,
                     looooooooooooooooooooooooooooooong };

Also fixes the formating of (column limit 25):
int x = {
  avariable,
  b(alongervariable)
};

llvm-svn: 172076
2013-01-10 15:58:26 +00:00
..
AST Provide couple of DeclPrint tests for my last patch. 2012-12-20 02:20:09 +00:00
ASTMatchers Adding tests since when I was asked whether this works I wasn't 2012-12-10 07:08:53 +00:00
Basic Extend stat query APIs to explicitly specify if the query is for 2012-12-11 07:48:23 +00:00
Format Fixes layout of right braces. 2013-01-10 15:58:26 +00:00
Frontend Really sort the #include lines in unittests/... 2012-12-04 09:53:37 +00:00
Lex Really sort the #include lines in unittests/... 2012-12-04 09:53:37 +00:00
Tooling Really sort the #include lines in unittests/... 2012-12-04 09:53:37 +00:00
CMakeLists.txt Initial version of formatting library. 2012-12-03 18:12:45 +00:00
Makefile Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user 2012-12-13 16:09:42 +00:00