Files
codeql-workshop-dataflow-c/solutions/ast.ql
2025-03-17 14:05:41 -07:00

13 lines
335 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("write_val_to_mem") }
}