This is an archive of the discontinued LLVM Phabricator instance.

Pass by reference NewQualifiedName in QualifiedRenameRule
Needs ReviewPublic

Authored by Quolyk on Nov 28 2017, 12:19 AM.

Diff Detail

Event Timeline

Quolyk created this revision.Nov 28 2017, 12:19 AM
Quolyk edited the summary of this revision. (Show Details)Nov 28 2017, 12:20 AM
hokein added inline comments.Nov 28 2017, 12:35 AM
include/clang/Tooling/Refactoring/Rename/RenamingAction.h
79

Passing std::string object is fine here -- because we use std::move below to avoid the extra copy.

Is the warning caught by the clang-tidy check?

Quolyk added inline comments.Nov 28 2017, 4:29 AM
include/clang/Tooling/Refactoring/Rename/RenamingAction.h
79

Unfortunatelly, I haven't tested, but I believe it's checkcpp warning.

hokein added inline comments.Nov 29 2017, 2:26 AM
include/clang/Tooling/Refactoring/Rename/RenamingAction.h
79

I think this is a false positive of the checkcpp.

There is a similar clang-tidy "performance-unnecessary-value-param" check, but I don't think the check will warn this case.

RKSimon resigned from this revision.Jan 13 2018, 7:02 AM