trunk/llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h:215:52: performance: Function parameter 'LHS' should be passed by const reference. [passedByValue]
trunk/llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h:216:52: performance: Function parameter 'RHS' should be passed by const reference. [passedByValue]
Static analyser cppcheck says:
trunk/llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h:215:52: performance: Function parameter 'LHS' should be passed by const reference. [passedByValue]
trunk/llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h:216:52: performance: Function parameter 'RHS' should be passed by const reference. [passedByValue]
Source code is
static bool isEqual(codeview::GloballyHashedType LHS,
codeview::GloballyHashedType RHS) {
Maybe better code:
static bool isEqual( const codeview::GloballyHashedType & LHS,
const codeview::GloballyHashedType & RHS) {
Static analyser cppcheck says:
trunk/llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h:215:52: performance: Function parameter 'LHS' should be passed by const reference. [passedByValue] trunk/llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h:216:52: performance: Function parameter 'RHS' should be passed by const reference. [passedByValue]
Source code is
static bool isEqual(codeview::GloballyHashedType LHS, codeview::GloballyHashedType RHS) {
Maybe better code:
static bool isEqual( const codeview::GloballyHashedType & LHS, const codeview::GloballyHashedType & RHS) {