Merge pull request #3091 from MathiasVP/autocomplete-to-new-dataflow-and-taint-tracking
Change dataflow and taint-tracking snippets to match the module-based API
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
- Add a prompt to the "Quick query" command to encourage users in single-folder workspaces to use "Create query" instead. [#3082](https://github.com/github/vscode-codeql/pull/3082)
|
- Add a prompt to the "Quick query" command to encourage users in single-folder workspaces to use "Create query" instead. [#3082](https://github.com/github/vscode-codeql/pull/3082)
|
||||||
- Remove support for CodeQL CLI versions older than 2.11.6. [#3087](https://github.com/github/vscode-codeql/pull/3087)
|
- Remove support for CodeQL CLI versions older than 2.11.6. [#3087](https://github.com/github/vscode-codeql/pull/3087)
|
||||||
- Preserve focus on results viewer when showing a location in a file. [#3088](https://github.com/github/vscode-codeql/pull/3088)
|
- Preserve focus on results viewer when showing a location in a file. [#3088](https://github.com/github/vscode-codeql/pull/3088)
|
||||||
|
- The `dataflowtracking` and `tainttracking` snippets expand to the new module-based interface. [#3091](https://github.com/github/vscode-codeql/pull/3091)
|
||||||
|
|
||||||
## 1.10.0 - 16 November 2023
|
## 1.10.0 - 16 November 2023
|
||||||
|
|
||||||
|
|||||||
@@ -30,34 +30,34 @@
|
|||||||
"Dataflow Tracking Class": {
|
"Dataflow Tracking Class": {
|
||||||
"prefix": "dataflowtracking",
|
"prefix": "dataflowtracking",
|
||||||
"body": [
|
"body": [
|
||||||
"class $1 extends DataFlow::Configuration {",
|
"module $1 implements DataFlow::ConfigSig {",
|
||||||
"\t$1() { this = \"$1\" }",
|
"\tpredicate isSource(DataFlow::Node node) {",
|
||||||
"\t",
|
|
||||||
"\toverride predicate isSource(DataFlow::Node node) {",
|
|
||||||
"\t\t${2:none()}",
|
"\t\t${2:none()}",
|
||||||
"\t}",
|
"\t}",
|
||||||
"\t",
|
"",
|
||||||
"\toverride predicate isSink(DataFlow::Node node) {",
|
"\tpredicate isSink(DataFlow::Node node) {",
|
||||||
"\t\t${3:none()}",
|
"\t\t${3:none()}",
|
||||||
"\t}",
|
"\t}",
|
||||||
"}"
|
"}",
|
||||||
|
"",
|
||||||
|
"module ${4:Flow} = DataFlow::Global<$1>;"
|
||||||
],
|
],
|
||||||
"description": "Boilerplate for a dataflow tracking class"
|
"description": "Boilerplate for a dataflow tracking class"
|
||||||
},
|
},
|
||||||
"Taint Tracking Class": {
|
"Taint Tracking Class": {
|
||||||
"prefix": "tainttracking",
|
"prefix": "tainttracking",
|
||||||
"body": [
|
"body": [
|
||||||
"class $1 extends TaintTracking::Configuration {",
|
"module $1 implements DataFlow::ConfigSig {",
|
||||||
"\t$1() { this = \"$1\" }",
|
"\tpredicate isSource(DataFlow::Node node) {",
|
||||||
"\t",
|
|
||||||
"\toverride predicate isSource(DataFlow::Node node) {",
|
|
||||||
"\t\t${2:none()}",
|
"\t\t${2:none()}",
|
||||||
"\t}",
|
"\t}",
|
||||||
"\t",
|
"",
|
||||||
"\toverride predicate isSink(DataFlow::Node node) {",
|
"\tpredicate isSink(DataFlow::Node node) {",
|
||||||
"\t\t${3:none()}",
|
"\t\t${3:none()}",
|
||||||
"\t}",
|
"\t}",
|
||||||
"}"
|
"}",
|
||||||
|
"",
|
||||||
|
"module ${4:Flow} = TaintTracking::Global<$1>;"
|
||||||
],
|
],
|
||||||
"description": "Boilerplate for a taint tracking class"
|
"description": "Boilerplate for a taint tracking class"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user