Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 3.1.2
-
OS X 10.9
Xcode 5.1.1
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
Issue Links
- relates to
-
QTCREATORBUG-15364 QtCreator doesn't find usages for auto variables
- Closed