since there are some CC improvements.... I would like to see some bugs fixed as well
It happens from time to time that CC doesn't recognize specific functions, normally it's just 1-2 functions in a file... but using Microsoft MFC inside a project, almost completely kills CC.
As soon as a message map is used, CC is gone for everything below that.
Here's some test code (based on MFC code but slightly modified to minimize it)
...
Hi, firstly, thanks for the minimal code. We have already said that CC's parsing don't expand macros on every Token. So
BEGIN_MESSAGE_MAP(SomeClass, BaseClass)
// [...]
END_MESSAGE_MAP()
When it see BEGIN_MESSAGE_MAP, it don't expand it, same as END_MESSAGE_MAP().
The method you can do is to add one rule (manually replacement rule) in CC's setting dialog.
BEGIN_EVENT_TABLE -> -END_EVENT_TABLE
So, those blocks were ignored. I think the document of such option should be updated in
Code Completion Design - CodeBlocks, currently it is wrong.
Also, if CC did try to expand every token, then it should work. See Huki's comments here:
Re: X Macro. Your problem is much like the X Macro problem.
PS: I once had to declare "AFX_MSGMAP_ENTRY" without forward declaration... and it worked... dunno if that was real or not xD
Not fully understand this sentence, can you show a minimal sample code? Thanks.