List Info

Thread: Re: KDE/kdevelop




Re: KDE/kdevelop
country flaguser name
United States
2008-01-06 11:16:20
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Jan 6, 2008, at 7:41 AM, David Nolden wrote:

> SVN commit 757917 by zwabel:
>
> Add full support for foreach statements into the parser
and  
> duchain. Add a test to verify the functionality.

has foreach been added as part of the new C++ standard? I
was under  
the impression it was only a Qt extension.

thanks
- --
Matt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHgQzkA6Vv5rghv0cRAiHuAJ9uXS2e57pmvO4pS7K4uFYRrK988wCg
qNBQ
83QeeyIczK8UVNYcxmwETT8=
=YZFT
-----END PGP SIGNATURE-----

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

RE: KDE/kdevelop
user name
2008-01-08 06:48:27
> has foreach been added as part of the new C++ standard?
I was under
> the impression it was only a Qt extension.

This is a Qt macro.  The parser shouldn't need to know how
to parse it, as it's defined in qglobal.h.

Along those lines, adding the following to the "special
headers" in the C++ Parsing section of the KDevelop
configuration did not seem to work:

#define foreach(x, y) x;

then, using:

foreach (MyClass myclass, myclasslist)
{
   myclass.  // <-- code completion does not work
}

Does not function properly.  The "myclass"
variable is unresolved.

Kris Wong

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )