[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / clang / test / Analysis / diagnostics / Inputs / expected-sarif / sarif-diagnostics-taint-test.c.sarif
blob0bded6f0925d1effa9e3cf684e26aa4f686b66e9
2   "$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/cos02/schemas/sarif-schema-2.1.0.json",
3   "runs": [
4     {
5       "artifacts": [
6         {
7           "length": 425,
8           "location": {
9             "index": 0,
10           },
11           "mimeType": "text/plain",
12           "roles": [
13             "resultFile"
14           ]
15         }
16       ],
17       "columnKind": "unicodeCodePoints",
18       "results": [
19         {
20           "codeFlows": [
21             {
22               "threadFlows": [
23                 {
24                   "locations": [
25                     {
26                       "importance": "essential",
27                       "location": {
28                         "message": {
29                           "text": "Calling 'f'"
30                         },
31                         "physicalLocation": {
32                           "artifactLocation": {
33                             "index": 0,
34                           },
35                           "region": {
36                             "endColumn": 6,
37                             "endLine": 13,
38                             "startColumn": 3,
39                             "startLine": 13
40                           }
41                         }
42                       }
43                     },
44                     {
45                       "importance": "essential",
46                       "location": {
47                         "message": {
48                           "text": "tainted"
49                         },
50                         "physicalLocation": {
51                           "artifactLocation": {
52                             "index": 0,
53                           },
54                           "region": {
55                             "endColumn": 18,
56                             "endLine": 9,
57                             "startColumn": 11,
58                             "startLine": 9
59                           }
60                         }
61                       }
62                     }
63                   ]
64                 }
65               ]
66             }
67           ],
68           "level": "warning",
69           "locations": [
70             {
71               "physicalLocation": {
72                 "artifactLocation": {
73                   "index": 0,
74                 },
75                 "region": {
76                   "endColumn": 18,
77                   "endLine": 9,
78                   "startColumn": 11,
79                   "startLine": 9
80                 }
81               }
82             }
83           ],
84           "message": {
85             "text": "tainted"
86           },
87           "ruleId": "debug.TaintTest",
88           "ruleIndex": 0
89         }
90       ],
91       "tool": {
92         "driver": {
93           "fullName": "clang static analyzer",
94           "informationUri": "https://clang.llvm.org/docs/UsersManual.html",
95           "language": "en-US",
96           "name": "clang",
97           "rules": [
98             {
99               "defaultConfiguration": {
100                 "enabled": true,
101                 "level": "warning",
102                 "rank": -1
103               },
104               "fullDescription": {
105                 "text": "Mark tainted symbols as such."
106               },
107               "id": "debug.TaintTest",
108               "name": "debug.TaintTest"
109             }
110           ],
111         }
112       }
113     }
114   ],