mirror of
https://github.com/hohn/codeql-workshop-dataflow-c.git
synced 2025-12-16 10:33:04 +01:00
Choose copy_mem() for ast rendering
This commit is contained in:
committed by
=Michael Hohn
parent
92d605aa7a
commit
a24441458a
@@ -8,5 +8,5 @@ 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") }
|
||||
override predicate shouldPrintFunction(Function func) { func.hasName("copy_mem") }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user