Issue |
92702
|
Summary |
llvm/utils/TableGen/ARMTargetDefEmitter.cpp:173: Poor choice of range variable type ?
|
Labels |
code-quality,
llvm:binary-utilities
|
Assignees |
|
Reporter |
dcb314
|
Static analyser cppcheck says:
llvm/utils/TableGen/ARMTargetDefEmitter.cpp:173:13: performance: Range variable 'CppSpelling' should be declared as const reference. [iterateByValue]
Source code is
for (auto CppSpelling : CppSpellings)
OS << " &" << CppSpelling << ",\n";
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs