HomePhabricator

[clang-format] [PR52527] can join * with /* to form an outside of comment error…

Authored by MyDeveloperDay on Tue, Nov 23, 2:35 AM.

Description

[clang-format] [PR52527] can join * with /* to form an outside of comment error C4138

https://bugs.llvm.org/show_bug.cgi?id=52527

The follow patch ensures there is always a space between * and /* to prevent transforming

void foo(* /* comment */)(int bar);

into

void foo(*/* comment */)(int bar);

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