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

Contextual help/auto-complete not working with C++11 auto keyword

    XMLWordPrintable

Details

    Description

      Screenshot WithoutAuto.png does not use the auto keyword: the pair is well
      detected and contextual help (F1) is suggested. Screenshot WithAuto.png shows that the type is not detected and that contextual help is thus not available.
      Screenshot Auto-complete.png shows that the type have the same issue in the auto-complete menu.

      void example(){
          std::map<std::size_t,std::string>map;
      
          for(const auto&pair:map){
              std::string s=pair.second;
          }
      
          for(const std::pair<std::size_t,std::string>&pair:map){
              std::string s=pair.second;
          }
      }
      

      Attachments

        1. Auto-complete.png
          38 kB
          Kimmo Leppälä
        2. WithAuto.png
          28 kB
          Kimmo Leppälä
        3. WithoutAuto.png
          31 kB
          Kimmo Leppälä

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              kileppal Kimmo Leppälä
              Votes:
              9 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes