Version: CVS of 06 november 2003 (using KDE KDE 3.1.4) Installed from: Debian testing/unstable Packages OS: Linux when writing the following : struct foo { int a; int b; }; int bar() { struct foo test[5]; for (foo* current = test; current; ++current) current -> } the type of "current" is not guessed (after the ->), whereas it is when writing foo* current; for (current = test; current; ++current) current ->
This has been fixed although it'll be another day before I can fix it for blocks that don't have {} enclosing the statement list. Here is the cvs message: CVS commit by treat: * Complete on vars declared in the init part of a for loop and make completion work on the conditional part of an if/else M +5 -6 cppcodecompletion.cpp 1.160