Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22306

Find symbol under cursor and syntax highlight doesn't work in omp pragma

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • Qt Creator 4.9.0
    • C/C++/Obj-C++ Support
    • None
    • 1. Mac OS : 10.14
      2. Xcode : 10.2
      3. Qt: 5.12.2
    • macOS

    Description

      Before Qt Creator 4.9.0 version, there is a Clang-Tidy compile error bug, see  [22136](QTCREATORBUG-22136) for more info.

      Now, after I upgraded to 4.9.0, the compiler errors fixed, but I found that find symbol under cursor and syntax highlight doesn't work. 

       

      sample code:

       

      std::cout << "Hello World!" << std::endl;
      std::out_of_range("123");
      printf("test\n");
      #pragma omp parallel
      {
         std::cout << "Hello World!" << std::endl;
         std::out_of_range("123");
         printf("test\n");
      }
      

       

       

      Two problems:

      1. all code in `#pragma omp parallel`  doesn't have syntax highlight
      2. code from <iostream> can't jump to the declaration, both F2 or right click doesn't work. On the other hand, other code works fine

      please see blow gif for more info.

       

       

      Attachments

        1. 2019-04-16 11.53.45.gif
          2.59 MB
          Samuel Dong
        2. qt_omp_test.zip
          558 kB
          Samuel Dong
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            samwei12 Samuel Dong
            Votes:
            9 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes