llvm-project/clang/unittests
Daniel Jasper 870d1bcdf9 clang-format: Add test for AlignAfterOpenBracket = AlwaysBreak in C++.
Revision 251405 added AlwaysBreak to support Google's JavaScript style. This
changeset complete existing AlignsAfterOpenBracket tests to exercise
AlwaysBreak for C++.

I thought this would be worthwhile.  With this option we can support request
from http://lists.llvm.org/pipermail/cfe-dev/2015-May/042942.html, that had
been requested a few times. This also partially solve related Bug 23422 and is
probably sufficient for most people.

  AlignAfterOpenBracket = FormatStyle::BAS_AlwaysBreak;
  BinPackArguments = false;
  BinPackParameters = false;

With these setting we obtain this formatting:

  void fooWithAVeryLongParamList(
      int firstParameter,
      int secondParameter
      int lastParameter)
  {
      object.alsoThisDoenstFitSoIBreakImmidiatly(
          firstParameter,
          secondParameter,
          lastParameter);
  }

Patch by Jean-Philippe Dufraigne, thank you.

llvm-svn: 255486
2015-12-14 08:41:18 +00:00
..
AST Adjust printQualifiedName to handle unscoped enums in a way similar to anonymous namespaces. 2015-11-09 16:45:17 +00:00
ASTMatchers Add a narrowing AST matcher that matches on a FunctionDecl with a non-throwing exception specification. 2015-12-02 15:23:59 +00:00
Basic [VFS] Fix status() of opened redirected file 2015-12-10 23:41:39 +00:00
CodeGen Fix Clang-tidy modernize-use-nullptr warnings in source directories; other minor cleanups 2015-10-06 23:40:43 +00:00
Driver Minor fix in ToolChainTest.cpp to allow user defined GCC toolchain. 2015-10-27 22:20:26 +00:00
Format clang-format: Add test for AlignAfterOpenBracket = AlwaysBreak in C++. 2015-12-14 08:41:18 +00:00
Frontend Add a missing dependency to unittests/Frontend. 2015-07-10 15:47:36 +00:00
Lex [VFS] Use VFS instead of virtual files in PPCallbacks test. 2015-10-08 14:20:14 +00:00
Rewrite [Rewrite] Make RewriteBuffer accessible on its own, and add a unit test for it. 2015-03-08 04:00:33 +00:00
Sema Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:00:23 +00:00
StaticAnalyzer [analyzer] Individual configuration options can be specified for checkers. 2015-03-04 17:59:34 +00:00
Tooling Fix calculation of shifted cursor/code positions. Specifically support 2015-11-23 08:33:48 +00:00
libclang Avoid picking up system headers in unittest by providing a fake libstdc++ with a ridiculously high version number. 2015-12-01 19:42:07 +00:00
CMakeLists.txt [CMake] Don't build the libclang tests unless you're building libclang 2015-12-04 23:12:19 +00:00
Makefile [Rewrite] Make RewriteBuffer accessible on its own, and add a unit test for it. 2015-03-08 04:00:33 +00:00