llvm-project/clang/unittests
Kanglei Fang 28ecd7f0b0 [clang-format] Don't break multi block parameters on ObjCBreakBeforeNestedBlockParam
Summary:
While [the original diff](https://reviews.llvm.org/D42493) makes a lot of sense, and multiple inline block parameter/trailing paramemter after inline block paramemter should be discouraged, the formatting result is different than what xcode does by default
For the exact same example provided in the original diff:
```
[object
  blockArgument:^{
    a = 42;
  }
     anotherArg:42];
```
The code is hard to read and not very visually pleasing

This diff uses `ObjCBreakBeforeNestedBlockParam` to shield from the formatting
When it's set to false, don't allign the inline block paramemters.

Reviewers: jolesiak, benhamilton, jinlin

Reviewed By: jolesiak

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D77039
2020-04-06 14:20:09 -07:00
..
AST [OpenMP] Fix layering problem with FrontendOpenMP 2020-04-06 13:04:26 -05:00
ASTMatchers [ASTMatchers] Matchers that take enumerations args provide hints with invalid arguments 2020-04-06 20:00:30 +01:00
Analysis [OpenMP] Fix layering problem with FrontendOpenMP 2020-04-06 13:04:26 -05:00
Basic Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
CodeGen Remove CompositeType class. 2020-03-18 13:53:17 -07:00
CrossTU [Tooling] Migrated APIs that take ownership of objects to unique_ptr 2019-08-30 09:29:34 +00:00
DirectoryWatcher [DirectoryWatcher] Fix misuse of FSEvents API and data race 2020-02-11 09:25:38 -08:00
Driver Remove unused Endian.h includes, NFC 2020-03-11 15:45:34 -07:00
Format [clang-format] Don't break multi block parameters on ObjCBreakBeforeNestedBlockParam 2020-04-06 14:20:09 -07:00
Frontend Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
Index [clang][Index] Visit the default parameter arguements in libindex. 2020-02-17 16:45:04 +01:00
Lex Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Rename [OpenMP] Fix layering problem with FrontendOpenMP 2020-04-06 13:04:26 -05:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema [OpenMP] Fix layering problem with FrontendOpenMP 2020-04-06 13:04:26 -05:00
Serialization Revert "[modules] Do not cache invalid state for modules that we attempted to load." 2020-03-10 10:59:26 -07:00
StaticAnalyzer [OpenMP] Fix layering problem with FrontendOpenMP 2020-04-06 13:04:26 -05:00
Tooling [OpenMP] Fix layering problem with FrontendOpenMP 2020-04-06 13:04:26 -05:00
libclang Revert "Revert "Reland "[Support] make report_fatal_error `abort` instead of `exit`""" 2020-02-13 10:16:06 -08:00
CMakeLists.txt [clang] [unittest] Import LLVMTestingSupport if necessary 2019-09-12 13:06:12 +00:00