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 269306 - IDE doesn't highlight some new OpenMP keywords
Summary: IDE doesn't highlight some new OpenMP keywords
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-12 09:57 UTC by soldatov
Modified: 2017-04-19 08:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch (7.75 KB, patch)
2016-12-14 11:21 UTC, Alexander Simon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2016-12-12 09:57:40 UTC
default (black) color in such cases:
#pragma omp taskloop untied
#pragma omp taskloop mergeable
#pragma omp taskloop nogroup
#pragma omp taskloop priority(1)
#pragma omp taskloop num_tasks(32)
#pragma omp taskloop grainsize(10)


"final" has blue color. See example from https://docs.oracle.com/cd/E24457_01/html/E21996/glmpw.html :
#include <stdio.h>
#include <omp.h>

#define THRESHOLD 5

int fib(int n)
{
  int i, j;
 
  if (n<2)
    return n;
 
  #pragma omp task shared(i) firstprivate(n) final(n <= THRESHOLD)
  i=fib(n-1);
 
  #pragma omp task shared(j) firstprivate(n) final(n <= THRESHOLD)
  j=fib(n-2);
 
  #pragma omp taskwait
  return i+j;
}


int main()
{
  int n = 30;
  omp_set_dynamic(0);
  omp_set_num_threads(4);
 
  #pragma omp parallel shared(n)
  {
     #pragma omp single
     printf ("fib(%d) = %d\n", n, fib(n));
  }
}
Comment 1 soldatov 2016-12-12 10:10:49 UTC
Other unrecognized code:
#pragma omp taskloop final(arr[0] == 5) grainsize(10)
Comment 2 Alexander Simon 2016-12-14 11:21:43 UTC
Created attachment 163232 [details]
proposed patch
Comment 3 Alexander Simon 2017-03-27 14:03:15 UTC
fixed in enum, branch release82, changeset 3e4ce68fe114
Comment 4 Quality Engineering 2017-04-02 02:36:21 UTC
Integrated into 'main-silver', will be available in build *201704020002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9924245fcee5
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #269306 IDE doesn't highlight some new OpenMP keywords
(transplanted from 3e4ce68fe114f44f65a89101eea67cb197233a53)
Comment 5 ilia 2017-04-13 11:14:51 UTC
https://netbeans.org/bugzilla/show_bug.cgi?id=269306 Changesets:
    http://hg.netbeans.org/releases/rev/3e4ce68fe114 # fixed Bug #269306 IDE doesn't highlight some new OpenMP keywords
Comment 6 soldatov 2017-04-19 08:32:56 UTC
Verified in NetBeans IDE 8.2 (Build 201704181436)