News for hackers. Stuff that matters.
Re:Memory Copy Hunting by loeg on Wednesday July 26, 2023 @01:31PM (#36881516)
Thanks! Clang-tidy is another tool we use on diffs at Facebook.
Re:Memory Copy Hunting by ot on Wednesday July 26, 2023 @03:45PM (#36883782)
Clang-tidy only supports AST-based matchers, you get type resolution but you still can only match simple patterns that only need local reasoning.

Infer does whole-program analysis, so it can for example detect whether it is safe to move an object instead of copying it, because nothing touches it afterwards.