https://bugs.kde.org/show_bug.cgi?id=383930

            Bug ID: 383930
           Summary: "Move into source" put definition into commented block
                    if in cpp file is missing empty new line at end
           Product: kdevelop
           Version: 5.1.1
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Code completion
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: piotr.mierzwin...@gmail.com
  Target Milestone: ---

At end of some cpp file (let it be myfoo.cpp) I have commented block (in the
past I commented some old function) without empty new line at end of file.
In header file I have some function with inline definition, so for example
int myFun() { return 5; }
I wanted move it into cpp file, so I put cursor inside curly brackets and
invoked Ctrl+Alt+S - "Move into source". After I was switching to cpp code I
noticed that definition of mentioned function has been put at end of commented
block, so function remained commented.
When I put new line at end of file all

Expected result:
Even if at end of cpp file there is commented block and missing empty end of
line then  definition of function should not be put inside commented block only
outside this block. Should be added empty new line and there put definition.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to