summaryrefslogtreecommitdiff
path: root/test/json/diag.json
blob: 4384ea3838cca081e8c3789a8ed5b0240efbec12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
  "jsonrpc": "2.0",
  "method": "textDocument/publishDiagnostics",
  "params": {
    "diagnostics": [
      {
        "code": "unused-includes",
        "codeDescription": {
          "href": "https://clangd.llvm.org/guides/include-cleaner"
        },
        "message": "Included header errno.h is not used directly (fixes available)",
        "range": {
          "end": {
            "character": 18,
            "line": 4
          },
          "start": {
            "character": 0,
            "line": 4
          }
        },
        "severity": 2,
        "source": "clangd",
        "tags": [
          1
        ]
      },
      {
        "code": "unused-includes",
        "codeDescription": {
          "href": "https://clangd.llvm.org/guides/include-cleaner"
        },
        "message": "Included header hash.h is not used directly (fixes available)",
        "range": {
          "end": {
            "character": 17,
            "line": 16
          },
          "start": {
            "character": 0,
            "line": 16
          }
        },
        "severity": 2,
        "source": "clangd",
        "tags": [
          1
        ]
      }
    ],
    "uri": "file:///home/abbe/code/dged/src/dged/syntax.c",
    "version": 0
  }
}