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

Support nested namespace definition (C++17)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.7.0-beta1
    • Qt Creator 4.0.3
    • C/C++/Obj-C++ Support
    • None
    • Linux 4.7.1-1-ARCH
      Qt Creator 4.0.3 based on Qt 5.7.0

    Description

      Could not associate qualified id with name, defined in the nested namespace definition:

      • refactor (rename), find usage, follow symbol options are not working with class c1 when it's referenced by qualified id (case of c3, a2, c5, a4, c1c1) in code below
      • autocomplete is working well in all cases
      
      namespace ns1::ns2
      {
      class c1 {};
      class c2 : public c1 {}; // Ok
      class c3 : public ::ns1::ns2::c1 {}; // nor refactor, nor find usage, nor follow symbol
      using a1 = c1; // Ok
      using a2 = ::ns1::ns2::c1; // nor refactor, nor find usage, nor follow symbol
      }
      
      namespace ns1::ns2
      {
      class c4 : public c1 {}; // Ok
      class c5 : public ::ns1::ns2::c1 {}; // nor refactor, nor find usage, nor follow symbol
      using a3 = c1; // Ok
      using a4 = ::ns1::ns2::c1; // nor refactor, nor find usage, nor follow symbol
      }
      
      class c1c1 : public ns1::ns2::c1 {}; // nor refactor, nor find usage, nor follow symbol
      
      using namespace ns1::ns2;
      class uc1c1 : public c1 {}; // Ok
      
      

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-16774
        # Subject Branch Project Status CR V

        Activity

          People

            kosjar Nikolai Kosjar
            tnovits Tatiana Novitskaya
            Votes:
            8 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes