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

"using Ns::Class" in header doesn't highlight Class in including files

    XMLWordPrintable

Details

    • 9b6d4573aa494851939f775ce6a5c861968182cd

    Description

      Also Find Usages doesn't find such usages. Autocompletion and member highlighting does work though.

      "using namespace Ns" works as expected.

      foo.h:

      namespace Ns { struct Foo { int bar; }; }
      using Ns::Foo;

      main.cpp:

      #include "foo.h"
      
      void func()
      {
        Foo foo; // Foo not highlighted
        foo.bar = 42; // bar highlighted, autocompletion works
      }

      Attachments

        Activity

          People

            pgorszkowski Przemyslaw Gorszkowski
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: