Issue 94105
Summary clang/include/clang/Interpreter/Interpreter.h:53: Small performance issue ?
Labels clang, code-quality
Assignees
Reporter dcb314
    Static analyser cppcheck says:

clang/include/clang/Interpreter/Interpreter.h:53:36: performance: Function parameter 'TT' should be passed by const reference. [passedByValue]

Source code is

  void SetTargetTriple(std::string TT) { TargetTriple = TT; }

Maybe better code:

  void SetTargetTriple( const std::string & TT ) { TargetTriple = TT; }

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to