Merge pull request #2188 from jbj/printast-override

C++: Add a sample class in PrintAST.ql
This commit is contained in:
Dave Bartolomeo
2019-10-31 17:02:20 -07:00
committed by GitHub

View File

@@ -7,3 +7,15 @@
import cpp
import PrintAST
/**
* Temporarily tweak this class or make a copy to control which functions are
* printed.
*/
class Cfg extends PrintASTConfiguration {
/**
* TWEAK THIS PREDICATE AS NEEDED.
* Holds if the AST for `func` should be printed.
*/
override predicate shouldPrintFunction(Function func) { any() }
}