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

            Bug ID: 373065
           Summary: Range-based for-loop doesn't have uses on the
                    container side
           Product: kdevelop
           Version: git master
          Platform: Compiled Sources
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Language Support: CPP (Clang-based)
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: nicolas.alva...@gmail.com
  Target Milestone: ---

When using a range-based for-loop, there is a correct declaration for the
element variable, but there are no uses for the range passed to the loop; it's
not highlighted at all in the editor.

void test() {
    std::vector<int> myVector = {1,2,3,4,5};
    for (int x : myVector) { // myVector is shown in black with no tooltip
        x+=1;
    }
}

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

Reply via email to