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

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P3: Somewhat important 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

      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.

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes