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

namespaces defined by a macro cause class view to fail to populate

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • Qt Creator 2.7.0, Qt Creator 2.8.0-beta
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu Linux 12.04, Qt4.8.2 and Qt5.0.1, building QtCreator from Git

    Description

      If you put in a header file

      #define COMPANY_NAMESPACE foobar

      then, in all your source files, use

      ...
      namespace COMPANY_NAMESPACE
      {
      }
      ...

      Anything inside the "foobar" namespace fails to show up in the class view. Also the local file outline is empty. Using the Ctl-click inside the editor works fine, also the Ctl-K search my method will display "foobar::method1(), foobar::method2(), etc". So at some level the Cpp parser is able to handle namespaces defined by a macro definition.

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            robackja Joseph Roback
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes