mirror of
https://github.com/github/codeql.git
synced 2026-05-14 11:19:27 +02:00
19 lines
424 B
Plaintext
19 lines
424 B
Plaintext
/**
|
|
* New-CFG version of AnnotationHasCfgNode.
|
|
*
|
|
* Checks that every timer annotation has a corresponding CFG node.
|
|
*/
|
|
|
|
import python
|
|
import TimerUtils
|
|
import NewCfgImpl
|
|
|
|
private module Utils = EvalOrderCfgUtils<NewCfg>;
|
|
|
|
private import Utils::CfgTests
|
|
|
|
from TimerAnnotation ann
|
|
where annotationWithoutCfgNode(ann)
|
|
select ann, "Annotation in $@ has no CFG node", ann.getTestFunction(),
|
|
ann.getTestFunction().getName()
|