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

Summary: All sigaction fields are not provided for code completion
Product: cnd Reporter: crimcat <crimcat>
Component: Code CompletionAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

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?