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 161749 - problems with restrict, __restrict and __restrict__
Summary: problems with restrict, __restrict and __restrict__
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 8.1
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: nnnnnk
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2009-04-02 11:15 UTC by Alexey Vladykin
Modified: 2015-02-24 14:05 UTC (History)
1 user (show)

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 Alexey Vladykin 2009-04-02 11:15:59 UTC
The following C code compiles fine (with -std=c99) but has much error highlighting in editor:

void f1(void *restrict x); // OK
void f1(void *restrict x) {} // OK

void f2(void *restrict const x);
void f2(void *restrict const x) {}

void f3(void *__restrict const x);
void f3(void *__restrict const x) {}

void f4(void *__restrict__ const x);
void f4(void *__restrict__ const x) {}

int main() { return 0; }
Comment 1 ophers 2011-08-06 12:36:12 UTC
This is still an issue with NB 7.0.1 .
In this simple program:

#include <stdio.h>
#include <stdlib.h>
#include <regex.h>

int main(int argc, char** argv) {
    
    regexec(...);

    return (EXIT_SUCCESS);
}

regexec is not recognized by the builtin parser:
Invoking "Complete Code..." gives "No suggestion".
Invoking "Show Documentation" display nothing.
Ctrl-clicking on it does not bring us to the declaration in <regex.h>.
Comment 2 ophers 2011-08-06 13:39:39 UTC
Could the priority be bumped to P3?
Comment 3 soldatov 2011-08-06 13:46:09 UTC
works for me (I speak about your case). Which platform and gcc version you uses?
Did you use "Reparse Project" context menu item?
Comment 4 ophers 2011-08-06 14:30:06 UTC
(In reply to comment #3)
> works for me (I speak about your case). Which platform and gcc version you
> uses?
Ubuntu 9.10 32-bit
GCC 4.4.1-4

> Did you use "Reparse Project" context menu item?
Yes.
Comment 5 ophers 2011-08-25 11:51:57 UTC
> (In reply to comment #3)
> > Did you use "Reparse Project" context menu item?
> Yes.

After using "Reparse Project" the squiggly red underline is cleared from "regexec",
but still code completion, documentation, parameters tool-tip and ctrl-clicking does not work.
Comment 6 nnnnnk 2012-05-10 15:24:25 UTC
fixed:
http://hg.netbeans.org/cnd-main/rev/97cabe2d7f79
Comment 7 noisebringer 2015-02-24 14:05:22 UTC
Absolutely the same bug appears in current nightly build NetBeans IDE Dev (Build 201502230001)