[cfe-dev] Clang-format doubt

saloni goyal via cfe-dev cfe-dev at lists.llvm.org
Tue Jun 8 14:20:59 PDT 2021


Greetings of the day,

I was using clang format and noticed something unusual there. When I have
selected the configuration of aligning according to Brackets to DontAlign
and also the Usetab to UT_Always it still align according to parentheses
e.g.

 for (itr = fMouseSettingsObject.begin(); itr != fMouseSettingsObject.end();
         ++itr)
There was an extra space added before ++ operator along with tab. I want to
remove this extra space. I tried this and after removing this line
<https://github.com/llvm/llvm-project/blob/main/clang/lib/Format/WhitespaceManager.cpp#L1040>the
space was removed. But is this a correct method or is there any other
solution for this?

Thanks
Saloni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210609/c9d7ad13/attachment.html>


More information about the cfe-dev mailing list