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
Repository metrics
- Stars
- (26,378 stars)
- PR merge metrics
- (Avg merge 1d 2h) (1,000 merged PRs in 30d)
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)