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

Summary: __FUNCTION__ is not recognized
Product: cnd Reporter: crimcat <crimcat>
Component: EditorAssignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

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