Issue 164574
Summary clang-format doesn't adhere to columnlimit near `@selector`
Labels clang-format
Assignees
Reporter kadircet
    ```
$ cat b.m
[objectName respondsToSelector:@selector
 (somelonglonglonglongnameeeeeeee:
 loooooooooanotherlonglonglonglongnametopush:otherlongnameforlimit:)]
```

```
$ clang-format -style='{BasedOnStyle: LLVM, ColumnLimit: 60}' b.m
[objectName
    respondsToSelector:
        @selector(
 somelonglonglonglongnameeeeeeee:loooooooooanotherlonglonglonglongnametopush:otherlongnameforlimit:)]
```

bisection points to https://github.com/llvm/llvm-project/commit/2a059042882ed5108478c635322e4e94439386f5 cc @sstwcw , it seems weird that we both split `@selector` from the selector-name and violate column limits. Can you PTAL?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to