Place cursor after opening brace for function implementation
ClosedPublic

Authored by amhndu on Oct 23 2018, 2:14 PM.

Details

Summary

This will place the cursor after the opening brace for the generated
body of the function implementation, similar to how the cursor is placed
after the opening parenthesis of an executed function declaration
completion.

Diff Detail

Repository
R32 KDevelop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
amhndu created this revision.Oct 23 2018, 2:14 PM
Restricted Application added a project: KDevelop. · View Herald TranscriptOct 23 2018, 2:14 PM
Restricted Application added a subscriber: kdevelop-devel. · View Herald Transcript
amhndu requested review of this revision.Oct 23 2018, 2:14 PM
brauch added a subscriber: brauch.Oct 23 2018, 2:17 PM

Is the opening brace always on its own line, independent of the formatter selected?

Nice patches from you, though, thanks a lot!

Yes, seems that way.
I also remember seeing that on bugzilla, but can't find now.

brauch accepted this revision.Oct 23 2018, 2:48 PM

Well, I guess adding line offsets is just the level of abstraction our code gen works at, anyways. Which is good enough. In my opinion, go for it ;)

This revision is now accepted and ready to land.Oct 23 2018, 2:48 PM
This revision was automatically updated to reflect the committed changes.