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

inner-namespace includes are not visible using namespace::stuff by auto-completion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • Qt Creator 2.2.0, Qt Creator 2.7.0, Qt Creator 2.8.0-beta
    • C/C++/Obj-C++ Support
    • None

    Description

      I use a C API for which I only have headers and binary. To avoid names collition, I confine those backend calls inside a namespace.
      Auto-completion can list included symbols but at the root namespace, not inside their namespace.

      Example:

       
      /* apibridge.h */
      namespace api {
          extern "C" {
               /* This include add symbol "api_init()" */
      #       include "api_header01.h"
              /* ... */
          }
      }
      
      /* ----------------- */
      
      /* Usage: */
      void foo::bar()
      {
          api_i /* auto-completion suggests api_init() */
          api::api_i /* auto-completion suggests nothings */
      }
      
       

      Attachments

        Issue Links

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

          Activity

            People

              erikv Erik Verbruggen
              thannoy Anthony Loiseau
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes