Skip to content

[clang-format] [regression] formatting of macro not stable; oscillates between two ways #106418

@joelhock

Description

@joelhock

formatting of the MEMBER macro oscillates between the two ways shown below each time it is reformatted with 19.1.0-rc3 and also main as of 114ff99. version 18 consistently chose the first one, fwiw.

empty .clang-format

struct MyStruct : Base {
  int foo;

#define MEMBER(NAME)                                                           \
  NAME { "" }
  MEMBER(bar);
};

struct MyStruct : Base {
  int foo;

#define MEMBER(NAME) NAME{""}
  MEMBER(bar);
};

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions