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

Highlight overloaded member of pointer access operator ->

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 4.7.0-beta1
    • C/C++/Obj-C++ Support
    • None

    Description

      We don't highlight ->, member access of a pointer. This operator is overloadable in C++.

      Highlighting of all other C++ operators, except new and delete, was done in https://codereview.qt-project.org/#/c/220587/ .

      The problem seems to be that libclang does not recognize "calls to overloads" like a->b as a CXCursor_CallExpr? See TokenInfo::punctuationOrOperatorKind.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            hugoh Hugo Holgersson
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes