Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

Is it possible for the parser to support newlib prototypes?

<< < (4/12) > >>

ollydbg:

--- Quote from: Huki on September 08, 2014, 11:30:25 am ---...
I hope that is clear now.

--- End quote ---
Hi, Huki, thanks for the explanation, now I fully understand the idea of your patch. Especially the Case 3 and Case 4.
As a conclusion: Showing the call tip is very tricky. Sometimes, you get some text matched macro tokens, but those tokens don't have args. How can we show call tips for them? We just expand those tokens, the most important(final) step to collect the call tip information is that expansion should stop at a Token which has args.
Yeah, the args are the call tips. Thus, don't expand to much, since we may lose the args if we expand to much.  ;)

ollydbg:
When testing your patch, I found another bug in CC's call tip.
Code::Blocks / Tickets / #47 Show call tip of the constructor function
Call tip failed with or without your patch. So, let's leave it for another fix.  ;)

ollydbg:
@Huki, your patch is in trunk now! Thanks for the contribution. I change some comments, fell free to comment.  ;D

Huki:
Thanks for the commit.. and the comments. :)


--- Quote from: ollydbg on September 09, 2014, 04:28:42 pm ---When testing your patch, I found another bug in CC's call tip.
Code::Blocks / Tickets / #47 Show call tip of the constructor function
Call tip failed with or without your patch. So, let's leave it for another fix.  ;)

--- End quote ---
I get the bug with your test code. But curiously it works inside the CB project, see the attached screenshots: both types of constructor calltips work fine. I remember it was added recently by a patch from Alpha, I found the post where you mention it, see discussion here (at the end of the post).

EDIT: removed attachments.

ollydbg:

--- Quote from: Huki on September 10, 2014, 04:52:13 pm ---Thanks for the commit.. and the comments. :)


--- Quote from: ollydbg on September 09, 2014, 04:28:42 pm ---When testing your patch, I found another bug in CC's call tip.
Code::Blocks / Tickets / #47 Show call tip of the constructor function
Call tip failed with or without your patch. So, let's leave it for another fix.  ;)

--- End quote ---
I get the bug with your test code. But curiously it works inside the CB project, see the attached screenshots: both types of constructor calltips work fine. I remember it was added recently by a patch from Alpha, I found the post where you mention it, see discussion here (at the end of the post).


--- End quote ---
Oh, I just found that the below test works OK for showing the call tip, see the "public" key word.

--- Code: ---class AAA
{
public:
    AAA(int a){;}
    int m_b;
};


AAA(8);

--- End code ---

 :D  :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version