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

Highlighting of whole line fails if argument list contains macro, depending on position of macro

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4: Low P4: Low
    • Qt Creator 14.0.0
    • Qt Creator 2.4.0-beta
    • Editors
    • None

      highlighting failure in a situation where macros are used within an argument list of function prototypes. The appended screenshot shows the highlighting result in Qt Creator 2.4.0rc of the following code snippet:
      //----------------------------------------
      #include <QtCore>
      #define OWN //memory owned and managed from here
      #define EXT //memory just referenced here, managed elsewhere
      #define PTR(typ,mode) typ*

      //func0: highlighted as expected:
      void func0(QObject* a_parent,QString a_name);

      //func1: highlighting fails on BOTH args, not just the one with the macro
      void func1(PTR(QObject,EXT) a_parent,QString a_name);

      //func2: argument order changed, highlighted as expected
      void func2(QString a_name,PTR(QObject,EXT) a_parent);

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

            davschul David Schulz
            patquand Patrick Quandmüller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes