Problem with code parser

Leon Pollak leonp at plris.com
Sat Oct 13 15:40:12 BST 2012


Hello, all.

I wrote the code similar to the following (reduced example, but work and 
illustrates the issue):

#define DEF1() void Test(int i) { typedef int ttCmnd; \
		ttCmnd& Cmnd=*(ttCmnd*)&i;

DEF1()
	Cmnd = 0;
}

This code compiles fine, but parser insists that it does not know the 
Cmnd variable and pops-up the call-out suggesting to define it each time 
I hoover the cursor over the 'Cmnd' variable.

What do I do wrong?

Thanks ahead.
-- 
Leon




More information about the KDevelop mailing list