https://bugs.llvm.org/show_bug.cgi?id=34141

            Bug ID: 34141
           Summary: Code completion fails in generic lambda if enough
                    context is there
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: libclang
          Assignee: unassignedclangb...@nondot.org
          Reporter: nikolai.kos...@qt.io
                CC: kli...@google.com, llvm-bugs@lists.llvm.org

#include <algorithm>
#include <vector>

struct Foo { int member; };

int main()
{
    std::vector<Foo> c;

    [&] (const auto &entry) {
        return entry; // OK, no context for completion of entry.
    };

    std::find_if(c.cbegin(), c.cend(), [&] (const auto &entry) {
        return entry. // Here completion of member would be nice.
    });
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to