Issue |
138124
|
Summary |
[clang-format] RemoveParentheses option removes necessary parentheses of Google Mock macro
|
Labels |
clang-format
|
Assignees |
|
Reporter |
JeroenBrunnenkreef
|
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
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs