|
| 1 | +{ |
| 2 | + // Place your ql workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and |
| 3 | + // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope |
| 4 | + // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is |
| 5 | + // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: |
| 6 | + // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. |
| 7 | + // Placeholders with the same ids are connected. |
| 8 | + // Example: |
| 9 | + // "Print to console": { |
| 10 | + // "scope": "javascript,typescript", |
| 11 | + // "prefix": "log", |
| 12 | + // "body": [ |
| 13 | + // "console.log('$1');", |
| 14 | + // "$2" |
| 15 | + // ], |
| 16 | + // "description": "Log output to console" |
| 17 | + // } |
| 18 | + "InlineExpectations dataflow: accept ast,ir":{ |
| 19 | + "scope": "cpp", |
| 20 | + "prefix": "iedfaccept", |
| 21 | + "body": " // $ ast,ir", |
| 22 | + "description": "Mark a sink for both ast and ir dataflow." |
| 23 | + }, |
| 24 | + "InlineExpectations dataflow: FP both":{ |
| 25 | + "scope": "cpp", |
| 26 | + "prefix": "iedfspurious", |
| 27 | + "body": " // $ SPURIOUS: ast,ir", |
| 28 | + "description": "Mark a result as false positive for both ast and ir dataflow." |
| 29 | + }, |
| 30 | + "InlineExpectations dataflow: FP ast":{ |
| 31 | + "scope": "cpp", |
| 32 | + "prefix": "iedfspuriousast", |
| 33 | + "body": " // $ SPURIOUS: ast", |
| 34 | + "description": "Mark a result as false positive for ast dataflow." |
| 35 | + }, |
| 36 | + "InlineExpectations dataflow: FP ir":{ |
| 37 | + "scope": "cpp", |
| 38 | + "prefix": "iedfspuriousir", |
| 39 | + "body": " // $ SPURIOUS: ir", |
| 40 | + "description": "Mark a result as false positive for ir dataflow." |
| 41 | + }, |
| 42 | + "InlineExpectations dataflow: FN both":{ |
| 43 | + "scope": "cpp", |
| 44 | + "prefix": "iedfmissing", |
| 45 | + "body": " // $ MISSING: ast,ir", |
| 46 | + "description": "Mark a result as false negative for both ast and ir dataflow" |
| 47 | + }, |
| 48 | + "InlineExpectations dataflow: FN IR":{ |
| 49 | + "scope": "cpp", |
| 50 | + "prefix": "iedfmissingir", |
| 51 | + "body": " // $ ast MISSING: ir", |
| 52 | + "description": "Mark a result as false negative for ir dataflow" |
| 53 | + }, |
| 54 | + "InlineExpectations dataflow: FN AST":{ |
| 55 | + "scope": "cpp", |
| 56 | + "prefix": "iedfmissingast", |
| 57 | + "body": " // $ ir MISSING: ast", |
| 58 | + "description": "Mark a result as false negative for ast dataflow" |
| 59 | + } |
| 60 | +} |
0 commit comments