llvm/llvm-project
View on GitHubinclude/clang/Tooling/Refactoring/Rename/RenamingAction.h:79]: (performance)
Open
#34,652 opened on Nov 14, 2017
bugzillaclang:toolingconfirmedgood first issue
Description
| Bugzilla Link | 35304 |
| Version | trunk |
| OS | Linux |
| Reporter | LLVM Bugzilla Contributor |
| CC | @JoeLoser |
Extended Description
trunk/llvm/tools/clang/include/clang/Tooling/Refactoring/Rename/RenamingAction.h:79]: (performance) Function parameter 'NewQualifiedName' should be passed by reference.
Source code is
QualifiedRenameRule(const NamedDecl *ND, std::string NewQualifiedName)
Maybe better code
QualifiedRenameRule(const NamedDecl *ND, const std::string & NewQualifiedName)