Issue 79707
Summary flang/lib/Parser/preprocessor.cpp:255: possible performance problem ?
Labels flang
Assignees
Reporter dcb314
    Static analyser cppcheck says:

flang/lib/Parser/preprocessor.cpp:255:39: performance: Function parameter 'macro' should be passed by const reference. [passedByValue]

Source code is

void Preprocessor::Define(std::string macro, std::string value) {
 definitions_.emplace(SaveTokenAsName(macro), Definition{value, allSources_});
}


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

Reply via email to