Skip to content

Files

Latest commit

 

History

History
10 lines (7 loc) · 549 Bytes

README-function-args-by-value.md

File metadata and controls

10 lines (7 loc) · 549 Bytes

function-args-by-value

Warns when you should be passing by value instead of by-ref. Types with sizeof <= 16 bytes [1] which are trivially-copyable [2] and trivially-destructible [3] should be passed by value.

Only fix these warnings if you're sure that the value would be passed in a CPU register instead on the stack.