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 237566 - Recognise __atribute
Summary: Recognise __atribute
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P4 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 14:38 UTC by thyplosion
Modified: 2013-10-24 10:36 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Syntax error on attribute (7.48 KB, image/png)
2013-10-24 10:36 UTC, thyplosion
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thyplosion 2013-10-23 14:38:09 UTC
Currently the editor claims that "__attribute((constructor))" is a syntax error.
Although this isn't standard C, it is accepted under GCC at least.
Would it be possible to make the editor ignore __attribute's?
Comment 1 Vladimir Voskresensky 2013-10-24 09:44:38 UTC
Could you, please, provide complete sample code.
We support attributes in most cases.

Thanks,
Vladimir
Comment 2 thyplosion 2013-10-24 10:36:57 UTC
Created attachment 141510 [details]
Syntax error on attribute

Hovering the mouse over the error icon reads


Unable to resolve identifier __attribute__

Unable to resolve identifier constructor


This is in a C source file on Dev 20131008. The project is defined as using C99.


The same occurs with

extern "C" __attribute((constructor)) void Initialise()
{
}

In a C++ source file.

Forcing a code-assistance reparse makes the error go away, but restarting NetBeans causes the syntax error to reappear.