[cfe-dev] Need help in Clang format

saloni goyal via cfe-dev cfe-dev at lists.llvm.org
Fri Jun 25 14:41:02 PDT 2021


Greetings of the day,
I was working on clang-format and needed some help. I ran clang-format on
the file got this:
https://review.haiku-os.org/c/haiku/+/4098/1/src/preferences/input/MouseView.cpp#149

whereas same configurations edited same thing but with 2 parameters like
this:
https://review.haiku-os.org/c/haiku/+/4098/1/src/preferences/input/MouseView.cpp#157

I have set my configuration to:
Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Empty;
Style.AlwaysBreakAfterReturnType = FormatStyle::RTBS_TopLevelDefinitions;

Why is this happening? Am I doing something wrong? Please help.

Thank you
Saloni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210626/981f10cf/attachment.html>


More information about the cfe-dev mailing list