Closed as not planned
Description
Originally reported on https://crbug.com/1462405
Style: Chromium
clang-format version:
~/src/depot_tools/clang-format --version
clang-format version 18.0.0 (https://chromium.googlesource.com/a/external/github.com/llvm/llvm-project 10664813fca8d5ccbfd90bae9e791b7062dabd7c
clang-format would wrap
RenderWidgetHostViewCocoa* __attribute__((objc_precise_lifetime)) keepSelfAlive = self;
as
RenderWidgetHostViewCocoa* __attribute__((objc_precise_lifetime))
keepSelfAlive = self;
without indenting the second line. This makes it look like the two lines are separate and that keepSelfAlive
is being assigned.
Ideally, clang-format should return something like
RenderWidgetHostViewCocoa*
__attribute__((objc_precise_lifetime)) keepSelfAlive = self;
This reproduces for C++ files as well, not just Objective-C.