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 191390 - All sigaction fields are not provided for code completion
Summary: All sigaction fields are not provided for code completion
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
: 191391 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-27 05:44 UTC by crimcat
Modified: 2013-05-07 11:21 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 2010-10-27 05:44:39 UTC
Hello,

Let's have a declaration:
struct sigaction sa;

For the partial expression of "sa." only sa_mask and sa_flags are proposed. No proposals for the union which contains sa_handler and sa_sigaction.
And if I enter manually "sa.sa_sigaction = NULL;" - "sa_sigaction" expression part is underlined with red.

The code is compilable anyway:
-------------------------------
#include <cstdlib>
#include <signal.h>

int
main(int argc, char** argv) {
    struct sigaction sa;
    sa.sa_sigaction = NULL;
    std::exit(0);
}
-------------------------------
Comment 1 Vladimir Voskresensky 2010-10-27 06:54:37 UTC
*** Bug 191391 has been marked as a duplicate of this bug. ***
Comment 2 nnnnnk 2010-11-01 12:46:18 UTC
sa_handler and sa_sigaction are macros.

So in sa.sa_sigaction they are used after dot.

if this situation is common we should add macros to completion list.
but it will have side effect - "sa.e|" completion list will have all macros started from 'e' like "EXIT_FAILURE", that's false positive.

I don't think that it's common situation.

Vladimir, what do you think about this?