File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
csharp/ql/lib/semmle/code/csharp/dataflow/internal Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1059,9 +1059,15 @@ module Private {
1059
1059
preservesValue = false and result = "taint"
1060
1060
}
1061
1061
1062
+ private string renderGenerated ( boolean generated ) {
1063
+ generated = true and result = "generated:"
1064
+ or
1065
+ generated = false and result = ""
1066
+ }
1067
+
1062
1068
/**
1063
1069
* A query predicate for outputting flow summaries in semi-colon separated format in QL tests.
1064
- * The syntax is: "namespace;type;overrides;name;signature;ext;inputspec;outputspec;kind",
1070
+ * The syntax is: "namespace;type;overrides;name;signature;ext;inputspec;outputspec;(generated:)? kind",
1065
1071
* ext is hardcoded to empty.
1066
1072
*/
1067
1073
query predicate summary ( string csv ) {
@@ -1072,7 +1078,7 @@ module Private {
1072
1078
c .relevantSummary ( input , output , preservesValue ) and
1073
1079
csv =
1074
1080
c .getCallableCsv ( ) + getComponentStackCsv ( input ) + ";" + getComponentStackCsv ( output ) +
1075
- ";" + renderKind ( preservesValue )
1081
+ ";" + renderGenerated ( c . isAutoGenerated ( ) ) + renderKind ( preservesValue )
1076
1082
)
1077
1083
}
1078
1084
}
You can’t perform that action at this time.
0 commit comments