Hacker News new | past | comments | ask | show | jobs | submit login




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.


Thanks! Clang-tidy is another tool we use on diffs at Facebook.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: