User forums > Help
Code completion trouble
thomas:
SVN uses an entirely different config than RC2, so nothing to do.
killerbot:
I quickly tried this also :
class foo
{
public:
foo(int);
void bar(float);
};
void func(double);
// <- file saved at this point
int main()
{
func( // <- works
foo var( // <- doesn't work <------------------------- so I only have problems here
var. // <- works
return 0;
}
I am using latest svn code (windows xp sp2)
EDIT : probably the code completion does not know yet var is of type foo (maybe it updates only after a line has ended ?? I am not sure)
rickg22:
Apparently it confuses bar with a function, but I'd need to check. Anyway this is a very special case, where on declaration of the variable, you invoke the constructor. This is not a fault of the parser, but of the codecompletion module, because it does a different kind of parsing. So it's very probable this case hasn't been coded yet.
spoofer:
I messed around plugin settion; by disabling SmartSense I get:
--- Code: ---class foo
{
public:
foo(int);
void bar(float);
};
void func(double);
int main()
{
foo var( // <- doesn't work (explained)
foo( // <- works ???
var. // <- works
func( // <- works
return 0;
}
--- End code ---
rickg22:
If anybody fixes this bug or problem or whatever, please tell me so i can merge the changes in my to-be-optimized copy.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version