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

            Bug ID: 363056
           Summary: Method is displayed with invalid parameters in source
                    file after selecting it from Kdevelop autocomplete
                    functionality.
           Product: kdevelop
           Version: unspecified
          Platform: Ubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: cponnapa...@mail.csuchico.edu

Version: Kdevelop 5
OS: Ubuntu 15.10
Compiler: gcc 5.2.1

Consider the following code:

new_file.h

class new_file{
    public:
        int new_func(int ch);
};

Now, after including new_file.h in the new_file.cpp file. I press ctrl+space to
autocomplete the declaration to new_func function.

The new_func(int ch) is shown correctly in autocompletion. However, when I
press enter on the displayed autocomplete method, the new_func is displayed
incorrectly without any arguments, eventhough it has 'int' as its argument.

so, the function is displayed as:
int new_file::int new_func()

correct output should be:
int new_file::int new_func(int)

Attached the screenshots for this.


Reproducible: Always

Steps to Reproduce:
1. Create a header file new_file.h and create a class as follows:
class new_file{
    public:
        int new_func(int ch);
};
2. Then create the new_file.cpp source file and include new_file.h in it.
3. Then, press ctrl+space to autocomplete the declaration to new_func function.
4. Select the autocomplete function provided.
5. The parameters for the new_func are not displayed. The function is shown
with blank parameters.

Actual Results:  
int new_file::int new_func()

Expected Results:  
int new_file::int new_func(int)

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

Reply via email to