| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Protocol.h | 80 bool fromJSON(const llvm::json::Value &, SymbolID &, llvm::json::Path); 129 bool fromJSON(const llvm::json::Value &, URIForFile &, llvm::json::Path); 181 bool fromJSON(const llvm::json::Value &, Position &, llvm::json::Path); 207 bool fromJSON(const llvm::json::Value &, Range &, llvm::json::Path); 243 bool fromJSON(const llvm::json::Value &, TextEdit &, llvm::json::Path); 270 bool fromJSON(const llvm::json::Value &E, TraceLevel &Out, llvm::json::Path); 364 bool fromJSON(const llvm::json::Value &, SymbolKind &, llvm::json::Path); 399 bool fromJSON(const llvm::json::Value &, MarkupKind &, llvm::json::Path); 757 bool fromJSON(const llvm::json::Value &, FileEvent &, llvm::json::Path); 907 bool fromJSON(const llvm::json::Value &, Diagnostic &, llvm::json::Path); [all …]
|
| H A D | Protocol.cpp | 66 bool fromJSON(const llvm::json::Value &E, URIForFile &R, llvm::json::Path P) { in fromJSON() 127 return llvm::json::Object{ in toJSON() 137 bool fromJSON(const llvm::json::Value &Params, Range &R, llvm::json::Path P) { in fromJSON() 143 return llvm::json::Object{ in toJSON() 154 return llvm::json::Object{ in toJSON() 190 bool fromJSON(const llvm::json::Value &E, TraceLevel &Out, llvm::json::Path P) { in fromJSON() 208 bool fromJSON(const llvm::json::Value &E, SymbolKind &Out, llvm::json::Path P) { in fromJSON() 718 llvm::json::Object O{ in toJSON() 741 llvm::json::Object Result{{"name", llvm::json::Value(nullptr)}, in toJSON() 895 bool fromJSON(const llvm::json::Value &V, MarkupKind &K, llvm::json::Path P) { in fromJSON() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Tools/lsp-server-support/ |
| H A D | Protocol.cpp | 343 llvm::json::Value 345 return llvm::json::Object{ in toJSON() 370 return llvm::json::Object{ in toJSON() 391 return llvm::json::Object{ in toJSON() 412 return llvm::json::Object{ in toJSON() 546 return llvm::json::Object{ in toJSON() 603 return llvm::json::Object{ in toJSON() 614 llvm::json::Object result{ in toJSON() 650 return llvm::json::Object{ in toJSON() 668 return llvm::json::Object{ in toJSON() [all …]
|
| H A D | Protocol.h | 138 llvm::json::Path path); 157 llvm::json::Path path); 171 llvm::json::Path path); 183 llvm::json::Path path); 190 inline bool fromJSON(const llvm::json::Value &, NoParams &, llvm::json::Path) { in fromJSON() 215 llvm::json::Path path); 229 llvm::json::Path path); 294 llvm::json::Path path); 347 llvm::json::Path path); 382 llvm::json::Path path); [all …]
|
| H A D | Transport.cpp | 44 llvm::json::Value id; 148 return llvm::json::Object{ in encodeError() 164 sendMessage(llvm::json::Object{ in notify() 172 sendMessage(llvm::json::Object{ in call() 189 sendMessage(llvm::json::Object{ in reply() 197 std::string json; in run() local 205 if (llvm::Expected<llvm::json::Value> doc = llvm::json::parse(json)) { in run() 254 llvm::json::Value params = nullptr; in handleMessage() 318 json.resize(contentLength); in readStandardMessage() 339 json.clear(); in readDelimitedMessage() [all …]
|
| H A D | Transport.h | 56 void notify(StringRef method, llvm::json::Value params); 57 void call(StringRef method, llvm::json::Value params, llvm::json::Value id); 58 void reply(llvm::json::Value id, llvm::Expected<llvm::json::Value> result); 67 void sendMessage(llvm::json::Value msg); 70 LogicalResult readMessage(std::string &json) { in readMessage() argument 74 LogicalResult readDelimitedMessage(std::string &json); 75 LogicalResult readStandardMessage(std::string &json); 109 bool onCall(StringRef method, llvm::json::Value params, llvm::json::Value id); 110 bool onReply(llvm::json::Value id, llvm::Expected<llvm::json::Value> result); 116 llvm::json::Path::Root root; in parse() [all …]
|
| /llvm-project-15.0.7/lldb/tools/lldb-vscode/ |
| H A D | JSONUtils.h | 43 llvm::StringRef GetAsString(const llvm::json::Value &value); 161 void FillResponse(const llvm::json::Object &request, 162 llvm::json::Object &response); 236 llvm::json::Value 249 llvm::json::Value CreateModule(lldb::SBModule &module); 270 llvm::json::Value 291 llvm::json::Value CreateScope(const llvm::StringRef name, 359 llvm::json::Value CreateStackFrame(lldb::SBFrame &frame); 377 llvm::json::Value CreateThread(lldb::SBThread &thread); 483 llvm::json::Object [all …]
|
| H A D | JSONUtils.cpp | 241 llvm::json::Object object; in CreateScope() 311 llvm::json::Object object; in CreateBreakpoint() 394 llvm::json::Object object; in CreateModule() 483 llvm::json::Object event; in CreateEventObject() 512 llvm::json::Value 514 llvm::json::Object object; in CreateExceptionBreakpointFilter() 587 llvm::json::Object object; in CreateSource() 877 llvm::json::Object body; in CreateThreadStopped() 1099 llvm::json::Object 1142 std::string JSONToString(const llvm::json::Value &json) { in JSONToString() argument [all …]
|
| H A D | lldb-vscode.cpp | 172 llvm::json::Object body; in SendProcessExitedEvent() 180 llvm::json::Object body; in SendThreadExitedEvent() 349 llvm::json::Object body; in SendProcessEvent() 757 llvm::json::Object body; in request_continue() 896 llvm::json::Object body; in request_exceptionInfo() 1049 llvm::json::Object body; in request_completions() 1205 llvm::json::Object body; in request_evaluate() 1304 llvm::json::Object body; in request_compileUnits() 1305 llvm::json::Array units; in request_compileUnits() 1361 llvm::json::Object body; in request_modules() [all …]
|
| H A D | RunInTerminal.cpp | 45 json::Value RunInTerminalMessagePid::ToJSON() const { in ToJSON() 46 return json::Object{{"kind", "pid"}, {"pid", static_cast<int64_t>(pid)}}; in ToJSON() 52 json::Value RunInTerminalMessageError::ToJSON() const { in ToJSON() 53 return json::Object{{"kind", "error"}, {"value", error}}; in ToJSON() 59 json::Value RunInTerminalMessageDidAttach::ToJSON() const { in ToJSON() 60 return json::Object{{"kind", "didAttach"}}; in ToJSON() 64 ParseJSONMessage(const json::Value &json) { in ParseJSONMessage() argument 65 if (const json::Object *obj = json.getAsObject()) { in ParseJSONMessage() 86 if (Expected<json::Value> json = io.ReadJSON(timeout)) in GetNextMessage() local 87 return ParseJSONMessage(*json); in GetNextMessage() [all …]
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | Sarif.cpp | 163 static json::Object createLocation(json::Object &&PhysicalLocation, in createLocation() 183 static json::Object 191 json::Object 254 json::Array Rules; in endRun() 296 json::Array 298 json::Object Ret{{"locations", json::Array{}}}; in createThreadFlows() 299 json::Array Locs; in createThreadFlows() 310 json::Object 324 json::Object Tool{ in createRun() 365 json::Array Locs; in appendResult() [all …]
|
| /llvm-project-15.0.7/lldb/include/lldb/Utility/ |
| H A D | TraceGDBRemotePackets.h | 36 llvm::json::Path path); 57 llvm::json::Path path); 81 llvm::json::Path path); 94 llvm::json::Path path); 106 llvm::json::Path path); 117 llvm::json::Path path); 128 llvm::json::Path path); 130 llvm::json::Value toJSON(const TraceCpuState &packet); 142 llvm::json::Path path); 160 bool fromJSON(const llvm::json::Value &value, [all …]
|
| H A D | TraceIntelPTGDBRemotePackets.h | 61 llvm::json::Path path); 63 llvm::json::Value toJSON(const TraceIntelPTStartRequest &packet); 75 llvm::json::Value toJSON(const JSONUINT64 &uint64, bool hex); 77 bool fromJSON(const llvm::json::Value &value, JSONUINT64 &uint64, 78 llvm::json::Path path); 117 bool fromJSON(const llvm::json::Value &value, 118 LinuxPerfZeroTscConversion &packet, llvm::json::Path path); 120 llvm::json::Value toJSON(const LinuxPerfZeroTscConversion &packet); 122 bool fromJSON(const llvm::json::Value &value, 123 TraceIntelPTGetStateResponse &packet, llvm::json::Path path); [all …]
|
| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | TraceGDBRemotePackets.cpp | 12 using namespace llvm::json; 25 return json::Value( in toJSON() 39 json::Value toJSON(const TraceStartRequest &packet) { in toJSON() 61 json::Value toJSON(const TraceStopRequest &packet) { in toJSON() 75 return json::Value(Object{{"type", packet.type}}); in toJSON() 83 json::Value toJSON(const TraceBinaryData &packet) { in toJSON() 94 return json::Value( in toJSON() 120 json::Path path) { in fromJSON() 129 json::Value toJSON(const TraceCpuState &packet) { in toJSON() 130 return json::Value( in toJSON() [all …]
|
| H A D | StructuredData.cpp | 20 static StructuredData::ObjectSP ParseJSONValue(json::Value &value); 22 static StructuredData::ObjectSP ParseJSONArray(json::Array *array); 26 llvm::Expected<json::Value> value = json::parse(json_text); in ParseJSON() 45 llvm::Expected<json::Value> value = in ParseJSONFromFile() 46 json::parse(buffer_or_error.get()->getBuffer().str()); in ParseJSONFromFile() 54 if (json::Object *O = value.getAsObject()) in ParseJSONValue() 57 if (json::Array *A = value.getAsArray()) in ParseJSONValue() 79 json::Value value = KV.second; in ParseJSONObject() 88 for (json::Value &value : *array) { in ParseJSONArray() 130 json::OStream stream(llvm::outs(), pretty_print ? 2 : 0); in DumpToStdout() [all …]
|
| H A D | TraceIntelPTGDBRemotePackets.cpp | 12 using namespace llvm::json; 25 json::Value toJSON(const JSONUINT64 &uint64, bool hex) { in toJSON() 27 return json::Value(formatv("{0:x+}", uint64.value)); in toJSON() 29 return json::Value(formatv("{0}", uint64.value)); in toJSON() 63 json::Value toJSON(const TraceIntelPTStartRequest &packet) { in toJSON() 64 json::Value base = toJSON((const TraceStartRequest &)packet); in toJSON() 65 json::Object &obj = *base.getAsObject(); in toJSON() 90 return json::Value(json::Object{ in toJSON() 98 json::Path path) { in fromJSON() 110 json::Path path) { in fromJSON() [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | SarifDiagnostics.cpp | 183 json::Object Region{ in createTextRegion() 202 return json::Object{ in createPhysicalLocation() 221 static json::Object createThreadFlowLocation(json::Object &&Location, in createThreadFlowLocation() 231 static json::Object createLocation(json::Object &&PhysicalLocation, in createLocation() 260 json::Array Locations; in createThreadFlow() 277 return json::Object{ in createCodeFlow() 291 return json::Object{ in createResult() 327 json::Object Ret{ in createRule() 341 json::Array Rules; in createRules() 358 return json::Object{ in createTool() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-cov/ |
| H A D | CoverageExporterJson.cpp | 94 return json::Array( in renderBranch() 102 json::Array RegionArray; in renderRegions() 109 json::Array RegionArray; in renderBranchRegions() 141 return json::Object( in renderExpansion() 153 return json::Object( in renderSummary() 159 json::Object( in renderSummary() 164 json::Object( in renderSummary() 170 json::Object( in renderSummary() 177 json::Object( in renderSummary() 241 json::Array FileArray; in renderFiles() [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/Trace/intel-pt/ |
| H A D | TraceIntelPTJSONStructs.h | 60 llvm::json::Value toJSON(const JSONModule &module); 62 llvm::json::Value toJSON(const JSONThread &thread); 64 llvm::json::Value toJSON(const JSONProcess &process); 66 llvm::json::Value toJSON(const JSONCpu &cpu); 68 llvm::json::Value toJSON(const pt_cpu &cpu_info); 73 llvm::json::Path path); 76 llvm::json::Path path); 79 llvm::json::Path path); 82 llvm::json::Path path); 85 llvm::json::Path path); [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/xpc/ |
| H A D | ConversionTests.cpp | 23 {json::Value(false), json::Value(3.14), json::Value(42), in TEST() 24 json::Value(-100), json::Value("foo"), json::Value(""), in TEST() 25 json::Value("123"), json::Value(" "), in TEST() 26 json::Value{true, "foo", nullptr, 42}, in TEST() 27 json::Value(json::Object{ in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/xpc/ |
| H A D | XPCTransport.cpp | 22 json::Object encodeError(Error E) { in encodeError() 33 return json::Object{ in encodeError() 57 sendMessage(json::Object{ in notify() 63 void call(StringRef Method, json::Value Params, json::Value ID) override { in call() 64 sendMessage(json::Object{ in call() 71 void reply(json::Value ID, Expected<json::Value> Result) override { in reply() 73 sendMessage(json::Object{ in reply() 79 sendMessage(json::Object{ in reply() 114 Optional<json::Value> ID; in handleMessage() 126 json::Value Result = nullptr; in handleMessage() [all …]
|
| /llvm-project-15.0.7/lld/test/MachO/ |
| H A D | time-trace.s | 11 # RUN: | %python -c 'import json, sys; json.dump(json.loads(sys.stdin.read()), sys.stdout, sort_k… 17 # RUN: | %python -c 'import json, sys; json.dump(json.loads(sys.stdin.read()), sys.stdout, sort_k… 22 # RUN: | %python -c 'import json, sys; json.dump(json.loads(sys.stdin.read()), sys.stdout, sort_k…
|
| /llvm-project-15.0.7/libc/benchmarks/ |
| H A D | JSON.cpp | 43 static Error fromJson(const json::Value &V, bool &Out) { in fromJson() 71 static Error fromJson(const json::Value &V, int &Out) { in fromJson() 76 if (V.kind() != json::Value::Kind::Number) in fromJson() 100 static Error fromJson(const json::Value &V, in fromJson() 102 if (V.kind() != json::Value::Kind::String) in fromJson() 141 const json::Object *O; 146 explicit JsonObjectMapper(const json::Value &V) in JsonObjectMapper() 166 if (const json::Value *Value = O->get(Key)) { in map() 173 static Error fromJson(const json::Value &V, in fromJson() 188 static Error fromJson(const json::Value &V, in fromJson() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | LSPClient.cpp | 29 return llvm::json::Value(nullptr); in take() 36 llvm::json::Value LSPClient::CallResult::takeValue() { in takeValue() 40 return llvm::json::Value(nullptr); in takeValue() 69 std::pair<llvm::json::Value, CallResult *> addCallSlot() { in addCallSlot() 84 std::vector<llvm::json::Value> Result; in takeNotifications() 93 void reply(llvm::json::Value ID, in reply() 115 llvm::json::Value ID) override { in call() 163 std::vector<llvm::json::Value> 172 using Obj = llvm::json::Object; 174 llvm::json::Value LSPClient::uri(llvm::StringRef Path) { in uri() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Tools/mlir-pdll-lsp-server/ |
| H A D | Protocol.cpp | 29 static bool mapOptOrNull(const llvm::json::Value ¶ms, in mapOptOrNull() 31 llvm::json::Path path) { in mapOptOrNull() 32 const llvm::json::Object *o = params.getAsObject(); in mapOptOrNull() 46 bool mlir::lsp::fromJSON(const llvm::json::Value &value, in fromJSON() 47 PDLLViewOutputKind &result, llvm::json::Path path) { in fromJSON() 65 bool mlir::lsp::fromJSON(const llvm::json::Value &value, in fromJSON() 66 PDLLViewOutputParams &result, llvm::json::Path path) { in fromJSON() 67 llvm::json::ObjectMapper o(value, path); in fromJSON() 75 llvm::json::Value mlir::lsp::toJSON(const PDLLViewOutputResult &value) { in toJSON() 76 return llvm::json::Object{{"output", value.output}}; in toJSON()
|