Skip to content

Regression clang-formatting __declspec(uuid(...)) #124574

@nico

Description

@nico

Current HEAD (3322ba4):

% out/gn/bin/clang-format declspec-uuid.cc                                  
template <>
struct __declspec(uuid(
    "3895C200-8F26-4F5A-B29D-2B5D72E68F99")) IAsyncOperation<IUnknown *>
    : IAsyncOperation_impl<IUnknown *> {};

Back at 1066481 (Oct 2023, a while ago):

% ~/src/chrome/src/buildtools/mac_arm64/format/clang-format declspec-uuid.cc
template <>
struct __declspec(uuid("3895C200-8F26-4F5A-B29D-2B5D72E68F99"))
IAsyncOperation<IUnknown *> : IAsyncOperation_impl<IUnknown *> {};

The old formatting is more correct.

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions