https://bugs.kde.org/show_bug.cgi?id=397205

            Bug ID: 397205
           Summary: Lambda capture with initializers and structured
                    binding declaration not parsed
           Product: kdevelop
           Version: git master
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: dvra...@kde.org
  Target Milestone: ---

Variables declared with lambda captures with initializers are not
syntax-highlighted and are not part of code completion inside of the lambda.

[socket = std::weak_ptr<ISocket>(socketptr)]() {
    // "socket" is not available for code completion and when used the entire
expression is not syntax-highlighted
};

Same applies to variables defined by structured binding.


I have the C++ profile set to C++1z in project settings and other C++14/17
constructs are highlighted correctly.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to