Skip to content

[clang-format] No space after placement new in member initializer list #54703

@aeubanks

Description

@aeubanks
#include <new>
struct A {
  void *a;
  A(void *p) : a(new(p) int) {}
};

clang-format doesn't want to add a space after the new even though I believe that's the standard practice.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions