diff options
author | Ben Hamilton <benhamilton@google.com> | 2017-12-14 16:17:38 +0000 |
---|---|---|
committer | Ben Hamilton <benhamilton@google.com> | 2017-12-14 16:17:38 +0000 |
commit | 687e5fa936f5211c542397990ed74ce0d328edb3 (patch) | |
tree | a7eba494d5d83078598c1522613409d41c5900cf /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 3d161ab6f437b2a5eeea4f29f56a611d42a8c8f0 (diff) | |
download | llvm-687e5fa936f5211c542397990ed74ce0d328edb3.zip llvm-687e5fa936f5211c542397990ed74ce0d328edb3.tar.gz llvm-687e5fa936f5211c542397990ed74ce0d328edb3.tar.bz2 |
[ClangFormat] IndentWrappedFunctionNames should be true in the google ObjC style
Summary:
If we write the following code, it goes over 100 columns, so we need to wrap it:
```
- (VeryLongReturnTypeName)veryLongMethodParameter:(VeryLongParameterName)thisIsAVeryLongParameterName
longMethodParameter:(LongParameterName)thisIsAlsoAnotherLongParameterName;
```
Currently, clang-format with the google style aligns the method parameter names on the first column:
```
- (VeryLongReturnTypeName)
veryLongMethodParameter:(VeryLongParameterName)thisIsAVeryLongParameterName
longMethodParameter:(LongParameterName)thisIsAlsoAnotherLongParameterName;
```
We'd like clang-format in the google style to align these to column 4 for Objective-C:
```
- (VeryLongReturnTypeName)
veryLongMethodParameter:(VeryLongParameterName)thisIsAVeryLongParameterName
longMethodParameter:(LongParameterName)thisIsAlsoAnotherLongParameterName;
```
Test Plan: make -j12 FormatTests && ./tools/clang/unittests/Format/FormatTests
Reviewers: krasimir, djasper, klimek
Reviewed By: djasper
Subscribers: cfe-commits, thakis
Differential Revision: https://reviews.llvm.org/D41195
llvm-svn: 320714
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions