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

            Bug ID: 435448
           Summary: Incomplete code highlighting in if with init-statement
           Product: kdevelop
           Version: git master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: k...@david-redondo.de
  Target Milestone: ---

Created attachment 137397
  --> https://bugs.kde.org/attachment.cgi?id=137397&action=edit
Screenshot of the example

If an if statement includes an init-statement, itself and the conditional will
be not highlighted fully. In addition a variable declared in the init statement
will not have a semantic colored assigned to it. 
This is with C++17 selected in the project configuration.
Example:

    if (auto b = std::vector<int>().size(); b > 2) {
        b = 5;
        auto c = std::vector<int>().size();
    }

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

Reply via email to