[clang-tidy] Add spuriously-wake-up-functions check
Summary: According to https://wiki.sei.cmu.edu/confluence/display/cplusplus/CON54-CPP.+Wrap+functions+that+can+spuriously+wake+up+in+a+loop and https://wiki.sei.cmu.edu/confluence/display/c/CON36-C.+Wrap+functions+that+can+spuriously+wake+up+in+a+loop misc-spuriously-wake-up-functions check is created. The check finds `cnd_wait` or `wait` function calls in an `IfStmt` and warns the user to replace it with a `WhileStmt` or use it with a lambda parameter. Reviewers: aaron.ballman, alexfh, hokein, jfb, Charusso Reviewed By: aaron.ballman Subscribers: sylvestre.ledru, whisperity, Eugene.Zelenko, mgorny, dexonsmith, cfe-commits, gerazo, xazax.hun, steakhal, Charusso Tags: #clang-tools-extra, #clang Differential Revision: https://reviews.llvm.org/D70876
Loading
Please sign in to comment