Skip to content

clang/lib/Format/Format.cpp:3581: vector copy problem ? #87254

Closed
@dcb314

Description

@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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions