https://bugs.llvm.org/show_bug.cgi?id=35304

            Bug ID: 35304
           Summary: include/clang/Tooling/Refactoring/Rename/RenamingActio
                    n.h:79]: (performance)
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: dcb...@hotmail.com
                CC: llvm-bugs@lists.llvm.org

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)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to