This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 165118 - __FUNCTION__ is not recognized
Summary: __FUNCTION__ is not recognized
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-13 23:44 UTC by crimcat
Modified: 2009-05-14 13:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description crimcat 2009-05-13 23:44:36 UTC
Hello

I've noticed that __FUNCTION__ predefined macro (recognized by MinGW and Cygwin) is not recognized by the IDE, while
 __FILE__ and __LINE__ macroses are recognized and highlighted as macroses, but:
Ctrl-Click on any of these macroses (__FILE__, __LINE__ or __FUNCTION__) shows like "Source file for __FILE__ is not
found" or "Cannot open element "__FUNCTION__", which seems not to be correct, because these are predefined compiler
definitions.
Comment 1 Vladimir Voskresensky 2009-05-14 08:02:37 UTC
Hi,
thanks for catch with __FUNCTION__ we will try to fix it at least to prevent unnecessary "unresolved identifier" marker.

As about FILE and LINE it is correct, you will see the information in tooltip (Ctrl+Mouse) that macro is compiler
predefined => not possible to jump into built-in macros
Comment 2 Vladimir Voskresensky 2009-05-14 13:46:28 UTC
fixed
http://hg.netbeans.org/cnd-main?cmd=changeset;node=fe77d26890b5