brintos

brintos / llvm-project-archived public Read only

0
0
Text · 903 B · d1a9412 Raw
22 lines · plain
1// RUN: echo -e '--- !FileInfo:\n  filepath: "/foo.td"\n  includes: "%/S;%/S/../../include"' > %t.yml2// RUN: tblgen-lsp-server -tablegen-compilation-database=%t.yml -lit-test < %s | FileCheck %s3{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"tablegen","capabilities":{},"trace":"off"}}4// -----5{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{6  "uri":"test:///foo.td",7  "languageId":"tablegen",8  "version":1,9  "text":"include \"include/included.td\""10}}}11// Check that we can properly process the includes without errors.12// CHECK: "method": "textDocument/publishDiagnostics",13// CHECK-NEXT: "params": {14// CHECK-NEXT:     "diagnostics": [],15// CHECK-NEXT:     "uri": "test:///foo.td",16// CHECK-NEXT:     "version": 117// CHECK-NEXT:   }18// -----19{"jsonrpc":"2.0","id":7,"method":"shutdown"}20// -----21{"jsonrpc":"2.0","method":"exit"}22