C++ Parser and gcc internal defines

Nicolas Alvarez nicolas.alvarez at gmail.com
Sun May 30 03:21:06 BST 2010


Gunther Piez wrote:
> On Saturday 29 May 2010 10:18:09 Esben Mose Hansen wrote:
> 
>> __FUNC__	string literal
>> __LINE__	int literal
>> __FILE__	string literal
>> __FUNCTION__	string literal
>> __PRETTY_FUNCTION__	string literal
>> __func__	const char* const
>> 
>> Expanding to the correct value is, on the other hand, probably overkill.
> 
> Yes, you are right.
> 
> BTW, I just checked that the command I gave works in icc (Intels compiler)
> almost the same way.
> Anyway, is my understanding correct, that there is currently no handling
> of gcc internal macros/defines? Should I file a bug report/enhancement
> request for it?

Internal macros (except the special ones mentioned above) *are* supported, 
by running gcc with -E as was suggested in this thread. The problem is that 
your project's compiler flags (such as -msse) are not passed to gcc.

-- 
Nicolas

(I read mailing lists through Gmane. Please don't Cc me on replies; it makes 
me get one message on my newsreader and another on email.)





More information about the KDevelop mailing list