We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf4e3a7 commit e6f4263Copy full SHA for e6f4263
csharp/ql/lib/semmle/code/csharp/PrintAst.qll
@@ -27,7 +27,8 @@ class PrintAstConfiguration extends TPrintAstConfiguration {
27
}
28
29
private predicate shouldPrint(Element e, Location l) {
30
- exists(PrintAstConfiguration config | config.shouldPrint(e, l))
+ exists(PrintAstConfiguration config | config.shouldPrint(e, l)) and
31
+ not e.(Stmt).isCompilerGenerated()
32
33
34
private predicate isImplicitExpression(ControlFlowElement element) {
0 commit comments