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

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

XMLWordPrintable

      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;
          }
      }
      

        1. WithoutAuto.png
          WithoutAuto.png
          31 kB
        2. WithAuto.png
          WithAuto.png
          28 kB
        3. Auto-complete.png
          Auto-complete.png
          38 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes