Issue 87254
Summary clang/lib/Format/Format.cpp:3581: vector copy problem ?
Labels clang
Assignees
Reporter dcb314
    Static analyser cppcheck says:

clang/lib/Format/Format.cpp:3581:49: performance: Function parameter 'Ranges' should be passed by const reference. [passedByValue]

Source code is

 std::vector<tooling::Range> Ranges,

This might be worth using a constant reference on.

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to