HomePhabricator

clang-format: distinguish ObjC call subexpressions after r355434

Description

clang-format: distinguish ObjC call subexpressions after r355434

Summary:
The revision r355434 had the unfortunate side-effect that it started to
recognize certain ObjC expressions with a call subexpression followed by a
a->b subexpression as C++ lambda expressions.

This patch adds a bit of logic to handle these cases and documents them in
tests.

The commented-out test cases in the new test suite are ones that were
problematic before r355434.

Reviewers: MyDeveloperDay, gribozavr

Reviewed By: MyDeveloperDay, gribozavr

Subscribers: MyDeveloperDay, cfe-commits

Tags: #clang

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

Details

Committed
krasimirMar 11 2019, 9:02 AM
Reviewer
MyDeveloperDay
Differential Revision
D59210: clang-format: distinguish ObjC call subexpressions after r355434
Parents
rL355830: [lldb] [test] Mark a few tests flakey on NetBSD
Branches
Unknown
Tags
Unknown