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

using Namespace::Foo does not work when included from header

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • Qt Creator 3.1.0
    • C/C++/Obj-C++ Support
    • None

    Description

      foo.h
      namespace Namespace
      {
        class Foo
        {
        };
      }
      
      using Namespace::Foo;
      
      Foo globalVar; <- Both highlighting, find usages and code completion work here.
      
      foo.cpp
      #include "foo.h"
      
      Foo anotherVar; <- Only code completion works, not highlighted and not included in find usages.
      
      

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            olegoandreev Oleg Andreev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes