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

FN brace matching involving macro definition and C comment

    XMLWordPrintable

Details

    • 6bf6c093c (11.0)

    Description

      In attached file, QtCreator shows an invalid (False Negative) brace mismatch (pink block in the screenshot). It has to do with the C-style comment on L498.

      To reproduce:

      1. Open attached tst_qanystringview.cpp in QtC
      2. Place cursor at the end of L502
        • → screenshot
        • Expected: green highlight of } in L502 with { in L498.
      3. remove the C comment in L498
        • braces are matched as expected

      Attachments

        1. tst_qanystringview.cpp
          27 kB
          Marc Mutz
        2. qtc-highlight-error.png
          68 kB
          Marc Mutz
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes