Description
I've got the RemoveParentheses option of clang-format set to MultipleParentheses. If I then format a file containing a Google Mock MOCK_METHOD macro, it removes parentheses that are necessary.
Example before format (correct code):
MOCK_METHOD(void, Function, (), (override));
Example after format (does not compile):
MOCK_METHOD(void, Function, , override);
clang-format version: 21.0.0git (shipped with CLion 2025.1)
Google Test framework version: 1.15.0
Metadata
Metadata
Assignees
Type
Projects
Status
Done