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

Incorrect highlighting of explicit base member specification

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • Qt Creator 2.5.0-beta
    • C/C++/Obj-C++ Support

    Description

      The following code is not parsed correctly by the syntax highlighter.

      class Base
      {
        int member;
      };
      
      class Derived : public Base
      {
      public:
        Derived()
        {
          this->Base::member = 10;
        }
      };
      

      Here, in the Base::member initialization, Base is highlighted as if it was a data member of the class and ::member is black (I assume, it is not recognized at all). The parser should first recognize the :: operator, which results in Base being a class name and member being the class member.

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            lastique Andrey Semashev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes