Files
codeql-workshop-dataflow-c/graphs/ast.ql
2025-03-17 19:21:15 -07:00

13 lines
327 B
Plaintext

/**
* @id cpp/print-ast
* @kind graph
*/
import cpp
import semmle.code.cpp.PrintAST
// extend `PrintASTConfiguration` and override `shouldPrintFunction` to hold for only the functions
class PrintConfig extends PrintAstConfiguration {
override predicate shouldPrintFunction(Function func) { func.hasName("copy_mem") }
}