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

Autocompletion does not handle visibility within namespaces well

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 2.1.0
    • Qt Creator 1.3.1
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu Linux amd64

    Description

      Autocompletion in QTCreator does not handle visibility inside namespaces well. This is especially annoying when using c++0x or boost libraries as after typing, let's say, "std::chrono" autocompletion shows members of entire std namespace in addition to these few from std::chrono.

      Test case
      Suppose we have code:

      class big;
      namespace small  {
        class yellow;
        namespace tiny {
          class green;
          }
        }
      

      Then after I type 'small::' autocompletion suggests me to continue with 'yellow', 'tiny' and 'big' although I shouldn't be able to see "big' from within 'small'.
      The same situation is when I type 'small::tiny::'. Autocompletion tries convince me that I can see not only 'green', but 'big', 'small' and 'yellow' also.

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            buratinas -
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes