why must a NamespaceAliasDeclaration's importIdentifier not be explicitlyGlobal?
David Nolden
zwabel at googlemail.com
Wed Jan 19 19:24:04 UTC 2011
In C++, all imports are first resolved using findDeclations(..), and that is
why the resulting identifiers are never explicitly global.
Am 19.01.2011 09:07 schrieb "David Nolden" <zwabel at googlemail.com>:
I think, this is only for consistency. A namespace alias declaration
is always global, and the "explicitly global" flag is simply not
required. That flag is actually just a flag for lookup. For example,
when you call "declaration->qualifiedIdentifier()", then the result
also does not have this flag set, even though it is global of course.
The flag could be removed in setImportIdentifier. However, when you
sometimes set an import identifier _with_ the flag and sometimes
_without_, then you'll be probably doing something wrong, after all
the "explicitly global" should have some special meaning in your
language.
Greetings, David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110119/1d243779/attachment.html>
More information about the KDevelop-devel
mailing list