MCPcopy Create free account
hub / github.com/Tencent/TscanCode / checkRedundantCopy

Method checkRedundantCopy

trunk/lib/checkother.cpp:2721–2757  ·  view source on GitHub ↗

--------------------------------------------------------------------------- This check rule works for checking the "const A a = getA()" usage when getA() returns "const A &" or "A &". In most scenarios, "const A & a = getA()" will be more efficient. ---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

runSimplifiedChecksFunction · 0.80

Calls 7

isEnabledMethod · 0.80
isCMethod · 0.80
isPointerMethod · 0.80
isClassMethod · 0.80
astOperand2Method · 0.80
strMethod · 0.45

Tested by

no test coverage detected