File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
cpp/cert/src/rules/CON54-CPP Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1414
1515import cpp
1616import codingstandards.cpp.cert
17- import codingstandards.cpp.Concurrency
17+ import codingstandards.cpp.rules.wrapspuriousfunctioninloop.WrapSpuriousFunctionInLoop
1818
19- from ConditionalWait cw
20- where
21- not isExcluded ( cw , ConcurrencyPackage:: wrapFunctionsThatCanSpuriouslyWakeUpInLoopQuery ( ) ) and
22- not cw . getEnclosingStmt ( ) . getParentStmt * ( ) instanceof Loop
23- select cw , "Use of a function that may wake up spuriously without a controlling loop."
19+ class WrapFunctionsThatCanSpuriouslyWakeUpInLoopQuery extends WrapSpuriousFunctionInLoopSharedQuery {
20+ WrapFunctionsThatCanSpuriouslyWakeUpInLoopQuery ( ) {
21+ this = ConcurrencyPackage:: wrapFunctionsThatCanSpuriouslyWakeUpInLoopQuery ( )
22+ }
23+ }
You can’t perform that action at this time.
0 commit comments