[Github-comments] [geany/geany] Strange calltips in C++ (#1249)

elextr notifications at xxxxx
Fri Sep 30 07:46:25 UTC 2016


```C++
namespace ns {

class C {
    void f( // when typing the ( the calltip says "ns::C::f (junk, rubbish)"
public:
    C(junk, rubbish){}
    ~C(){}
};

};
```

Yep, takes the parameters for the constructor and it uses that as the prototype for the new function that doesn't exist yet.

And ... if there happen to be other functions named `f` the calltips will cycle through the prototypes of those functions and never come back to the erroneous one.

Seems like some extraneous function definition is being made for the calltip.  But it never appears in the symbol list.  Like as if something is scanning for the ) and using the parameter list immediately before it, ignoring the `public: C(`.  But what, its not the parser because the symbol doesn't show in the sidebar?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1249
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160930/ffcf3781/attachment.html>


More information about the Github-comments mailing list