llvm-project/clang/lib
Ben Hamilton 4dc1cdc5e1 [clang-format] Ensure wrapped ObjC selectors with 1 arg obey IndentWrappedFunctionNames
Summary:
In D43121, @Typz introduced logic to avoid indenting 2-or-more
argument ObjC selectors too far to the right if the first component
of the selector was longer than the others.

This had a small side effect of causing wrapped ObjC selectors with
exactly 1 argument to not obey IndentWrappedFunctionNames:

```
- (aaaaaaaaaa)
aaaaaaaaaa;
```

This diff fixes the issue by ensuring we align wrapped 1-argument
ObjC selectors correctly:

```
- (aaaaaaaaaa)
    aaaaaaaaaa;
```

Test Plan: New tests added. Test failed before change, passed
  after change. Ran tests with:
  % make -j12 FormatTests && ./tools/clang/unittests/Format/FormatTests

Reviewers: djasper, klimek, Typz, jolesiak

Reviewed By: djasper, jolesiak

Subscribers: cfe-commits, Typz

Differential Revision: https://reviews.llvm.org/D44994

llvm-svn: 328871
2018-03-30 15:38:45 +00:00
..
ARCMigrate Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. 2017-06-03 06:23:19 +00:00
AST Hoist MethodVFTableLocation out of MicrosoftVTableContext, NFC 2018-03-29 22:42:24 +00:00
ASTMatchers [astmatchers] Fix linking issue 2018-03-29 02:47:28 +00:00
Analysis [clang] Change std::sort to llvm::sort in response to r327219 2018-03-27 16:50:00 +00:00
Basic [AArch64]: Add support for parsing rN registers. 2018-03-29 21:11:15 +00:00
CodeGen Hoist MethodVFTableLocation out of MicrosoftVTableContext, NFC 2018-03-29 22:42:24 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver [PATCH] [RISCV] Verify the input value of -march= 2018-03-28 08:29:50 +00:00
Edit [Edit, Rewrite] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-27 00:01:49 +00:00
Format [clang-format] Ensure wrapped ObjC selectors with 1 arg obey IndentWrappedFunctionNames 2018-03-30 15:38:45 +00:00
Frontend [ObjC++] Make parameter passing and function return compatible with ObjC 2018-03-28 21:13:14 +00:00
FrontendTool Make a build bot happy. 2018-02-10 14:26:53 +00:00
Headers [DOXYGEN] Fix doxygen and content issues in mmintrin.h 2018-03-09 00:38:51 +00:00
Index [Index] fix USR generation for namespace{extern{X}} 2018-02-02 14:13:37 +00:00
Lex [Modules] Improve fixit for framework private module maps 2018-03-30 05:17:58 +00:00
Parse [ast] Do not auto-initialize Objective-C for-loop variables in Objective-C++ in templatized code under ARC 2018-03-29 00:56:24 +00:00
Rewrite [Edit, Rewrite] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-27 00:01:49 +00:00
Sema Generalize NRVO to cover C structs. 2018-03-29 17:56:24 +00:00
Serialization [ast] Do not auto-initialize Objective-C for-loop variables in Objective-C++ in templatized code under ARC 2018-03-29 00:56:24 +00:00
StaticAnalyzer [analyzer] Remove the unused method declaration in `ValistChecker.cpp`. 2018-03-30 13:37:50 +00:00
Tooling [clang] Change std::sort to llvm::sort in response to r327219 2018-03-27 16:50:00 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00