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

Code completion not working for auto parameter in lambda

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • Qt Creator 4.4.0-rc1
    • C/C++/Obj-C++ Support

    Description

      #include <algorithm>
      #include <vector>
      
      struct Foo { int member; };
      
      int main()
      {
          std::vector<Foo> c;
      
          [&] (const auto &entry) {
              return entry.  // OK, here is not enough context for completion of "member".
          };
      
          std::find_if(c.cbegin(), c.cend(), [&] (const auto &entry) {
              return entry. // ...but here is. Completion of "member" would be nice.
          });
      }
      

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            bubke Marco Bubke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes