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

Clang: Base members of unknown kind are highlighted as data members

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 3.6.0
    • Qt Creator 3.5.1
    • C/C++/Obj-C++ Support
    • None
    • Kubuntu 15.04, x86_64

    Description

      With clang C++ code model, members of a base class that is not known at the use site are colored as data members. Consider this code snippet:

      template< typename Base >
      struct foo : public Base
      {
          void bar()
          {
              Base::hello();
              this->world();
          }
      };
      

      In this code both `hello` and `world` are colored as if they are data members. This may not be so and is not known at the point of their use. QtCreator should not make that assumption and color these symbols as regular code text.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: