https://bugs.kde.org/show_bug.cgi?id=317299
--- Comment #19 from Piotr Mierzwinski <piotr.mierzwin...@gmail.com> --- (In reply to Igor Kushnir from comment #18) > (In reply to Piotr Mierzwinski from comment #17) > > Just found the issue, where your suggestion about skipping formatting > > doesn't work how we expected. > > Namely, in case of 'Adapt signature', where I supposed that formatting is > > applied automatically I wanted to skip it so I set kdev_format_source > > without linked file. And unfortunately formatting happened partially. I mean > > that in this case indicator of reference or pointer was moved next to type, > > if originally was present next to name of argument. > > I made test with updating definition of method and in declaration these > > indicators were modified, but space didn't touch. > I suppose this is exactly what I surmised in an earlier comment: > > In case when more code is generated, KDevelop must ensure > > that it is not formatted in some fixed-for-all-IDE-users style chosen by > > KDevelop > > developers, but in the style the user selected for the current > > session/project. > Probably KDevelop generates new code for your signature in a predefined > hard-coded style, then tries to format it in your chosen style and fails, > leaving the signature in the hard-coded style. Please try to configure > Artistic Style, uncrustify, clang-format or kdev_format_source to match your > code formatting as I suggested in my long comment above. See if KDevelop's > formatting matches your expectations then. Or is your code formatted so > heterogeneously and unsystematically that even fine-grained > kdev_format_source configuration is very time-consuming/impossible? Recently discovered another case where was applied any formatting for 'Adapt signature' when I had kdev_format_source without linked file Anyway. I will try to configure some formatting tool and will link it to KDevelop. My code is formatted rather systematically, I tried to keep one style in whole code. My style is similar to Artistic Style->Qt only I prefer spaces in decl.and def., which more or less looks like that: QMap <QString, QStringList> myFoo2( int p, int &r ); int & myFoo1( bool &res, int b, char *c ) { int a = 1; char *res = nullptr; int *r2; char tab[5]; if (a > b) myFoo2(b, r2); else { doSomething(c, b, res); return res; } return r2; } Note. This code doesn't make sense, it's only example. Thanks a lot for advice. -- You are receiving this mail because: You are watching all bug changes.