| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | LSPBinder.h | 36 using JSON = llvm::json::Value; 42 HandlerMap<void(JSON)> NotificationHandlers; 43 HandlerMap<void(JSON, Callback<JSON>)> MethodHandlers; 44 HandlerMap<void(JSON, Callback<JSON>)> CommandHandlers; 49 virtual void callMethod(llvm::StringRef Method, JSON Params, 50 Callback<JSON> Reply) = 0; 51 virtual void notify(llvm::StringRef Method, JSON Params) = 0; 136 Raw.MethodHandlers[Method] = [Method, Handler, This](JSON RawParams, in method() 161 Raw.CommandHandlers[Method] = [Method, Handler, This](JSON RawParams, in command() 202 Method, JSON(R), [all …]
|
| H A D | JSONTransport.cpp | 111 if (readRawMessage(JSON)) { in loop() 115 OS << JSON << "\n"; in loop() 117 if (auto Doc = llvm::json::parse(JSON)) { in loop() 123 vlog("<<< {0}\n", JSON); in loop() 146 bool readRawMessage(std::string &JSON) { in readRawMessage() argument 150 bool readDelimitedMessage(std::string &JSON); 151 bool readStandardMessage(std::string &JSON); 276 JSON.resize(ContentLength); in readStandardMessage() 287 InMirror << llvm::StringRef(&JSON[Pos], Read); in readStandardMessage() 301 JSON.clear(); in readDelimitedMessage() [all …]
|
| /llvm-project-15.0.7/llvm/test/Other/ |
| H A D | statistic.ll | 1 …RUN: opt < %s -o /dev/null -instsimplify -stats -stats-json 2>&1 | FileCheck %s --check-prefix=JSON 2 …null -instsimplify -stats -stats-json -info-output-file %t && FileCheck %s < %t --check-prefix=JSON 7 ; JSON: { 8 ; JSON-DAG: "instsimplify.NumSimplified": 1 9 ; JSON: }
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-symbolizer/ |
| H A D | output-style-json-data.test | 1 ## This test checks JSON output for DATA. 6 # RUN: llvm-symbolizer "DATA %t-no-file.o 0" --output-style=JSON | \ 11 # RUN: llvm-symbolizer "DATA tmp.o Z" --output-style=JSON | \ 18 # RUN: llvm-symbolizer "DATA %t.o 0x10000000" --output-style=JSON | \ 23 # RUN: llvm-symbolizer "DATA %t.o 0" --output-style=JSON | \ 28 # RUN: llvm-symbolizer -e=%t.o "DATA 2" "DATA 8" --output-style=JSON | \
|
| H A D | output-style-json-code.test | 1 ## This test checks JSON output for CODE. 3 ## If the addresses are specified on the command-line, the output JSON will 7 # RUN: llvm-symbolizer --output-style=JSON -e %p/no-file.exe 0 | \ 13 # RUN: llvm-symbolizer --output-style=JSON -e %p/Inputs/addr.exe 0x10000000 | \ 18 # RUN: llvm-symbolizer --output-style=JSON --obj=%p/Inputs/discrim 0x400575 | \ 22 ## In case of stdin input the output will contain a single JSON object for each input string. 25 # RUN: llvm-symbolizer --output-style=JSON --no-inlines -e %p/Inputs/addr.exe < %p/Inputs/addr.inp … 35 # RUN: llvm-symbolizer --output-style=JSON -e %p/Inputs/addr.exe < %p/Inputs/addr.inp | \ 46 # RUN: llvm-addr2line --output-style=JSON -f -i -e %p/Inputs/addr.exe < %p/Inputs/addr.inp | \ 55 ## Note llvm-addr2line without -f does not print the function name in JSON too. [all …]
|
| H A D | source.ll | 22 ;; Check JSON style output. 23 ; RUN: llvm-symbolizer --print-source-context-lines=3 --obj=%t.o 0 --output-style=JSON | \ 24 ; RUN: FileCheck %s --check-prefix=JSON --strict-whitespace --match-full-lines --implicit-check-n… 25 ; JSON:[{"Address":"0x0","ModuleName":"{{.*}}.o","Symbol":[{"Column":13,"Discriminator":0,"FileName…
|
| H A D | output-style-json-frame.ll | 1 ;; This test checks JSON output for FRAME. 6 ; RUN: llvm-symbolizer "FRAME %t-no-file.o 0" --output-style=JSON | \ 11 ; RUN: llvm-symbolizer "FRAME tmp.o Z" --output-style=JSON | \ 18 ; RUN: llvm-symbolizer "FRAME %t.o 0x10000000" --output-style=JSON | \ 23 ; RUN: llvm-symbolizer "FRAME %t.o 0" --output-style=JSON | \
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/ |
| H A D | pretty-print.test | 1 ## Test the JSON pretty-print flag. 5 ## Test JSON with pretty-print off. 6 # RUN: llvm-readobj --elf-output-style=JSON %t.pretty | \ 24 ## Test JSON with pretty-print on. 25 # RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.pretty | \
|
| H A D | file-summary-json.test | 1 ## Test how we output JSON file summaries. 8 # RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.dir/obj | \ 27 # RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.dir/obj %t.dir/obj | \ 59 # RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.archive-single | \ 80 # RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.archive-multiple | \
|
| H A D | output-style.test | 4 CHECK: error: --elf-output-style value should be either 'LLVM', 'GNU', or 'JSON', but was 'unknown'
|
| /llvm-project-15.0.7/clang/utils/analyzer/ |
| H A D | ProjectMap.py | 8 JSON = Dict[str, Any] variable 149 def _parse(raw_projects: List[JSON]) -> List[ProjectInfo]: argument 154 def _parse_project(raw_project: JSON) -> ProjectInfo: argument 175 def _get_git_params(raw_project: JSON) -> Tuple[str, str]: argument 194 def _convert_infos_to_dicts(projects: List[ProjectInfo]) -> List[JSON]: 199 def _convert_info_to_dict(project: ProjectInfo) -> JSON:
|
| /llvm-project-15.0.7/llvm/docs/CommandGuide/ |
| H A D | llvm-remark-size-diff.rst | 43 * ``json``: JSON report. 47 Pretty-print JSON output. Optional. 49 If output is not set to JSON, this does nothing. 126 JSON OUTPUT 134 :program:`llvm-remark-size-diff` will output JSON as follows. 171 Function JSON 206 Computing Diffs From Function JSON argument 209 Function JSON does not contain the diffs. Tools consuming JSON output from
|
| H A D | llvm-readelf.rst | 76 ``GNU``, and ``JSON``. ``LLVM`` output is an expanded and structured format. 78 output. ``JSON`` is JSON formatted output intended for machine consumption. 133 When used with :option:`--elf-output-style`, JSON output will be formatted in
|
| H A D | llvm-symbolizer.rst | 308 .. option:: --output-style <LLVM|GNU|JSON> 324 ``JSON`` style provides a machine readable output in JSON. If addresses are 325 supplied via stdin, the output JSON will be a series of individual objects. 349 $ llvm-symbolizer --output-style=JSON --obj=inlined.elf 0x4004be 0x400486 -p 399 For JSON output, the option will cause JSON to be indented and split over 400 new lines. Otherwise, the JSON output will be printed in a compact form.
|
| /llvm-project-15.0.7/llvm/test/TableGen/ |
| H A D | JSON.td | 1 // RUN: llvm-tblgen -dump-json %s | %python %S/JSON-check.py %s 39 // A variable not filled in at all has its value set to JSON 44 // Test initializers that map to primitive JSON types 49 // Integer literals should be emitted in the JSON at full 64-bit 50 // precision, for the benefit of JSON readers that preserve that 76 // Test initializers that map to JSON objects containing a 'kind' 121 // in the JSON output looking for the one that has the test integer
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/xpc/ |
| H A D | Conversion.cpp | 20 xpc_object_t jsonToXpc(const json::Value &JSON) { in jsonToXpc() argument 22 xpc_object_t PayloadObj = xpc_string_create(llvm::to_string(JSON).c_str()); in jsonToXpc()
|
| H A D | Conversion.h | 18 xpc_object_t jsonToXpc(const llvm::json::Value &JSON);
|
| H A D | README.txt | 2 - the XPC transport layer (alternative transport layer to JSON-RPC)
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/support/ |
| H A D | TraceTests.cpp | 79 std::string JSON; in TEST() local 81 llvm::raw_string_ostream OS(JSON); in TEST() 92 llvm::yaml::Stream Stream(JSON, SM); in TEST()
|
| /llvm-project-15.0.7/lldb/docs/use/ |
| H A D | intel_pt.rst | 178 In order to use trace load, you need to first create a JSON file with 228 The JSON file mainly contains all the shared libraries that 234 location of the file relative to the JSON file. 235 Once you have the JSON file and the module files in place, you can simple run
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/test/ |
| H A D | spaces-in-delimited-input.test | 13 # CHECK-NOT: JSON parse error
|
| /llvm-project-15.0.7/polly/ |
| H A D | .arclint | 5 "exclude": "(lib/External/JSON/.*)",
|
| /llvm-project-15.0.7/llvm/tools/llvm-readobj/ |
| H A D | llvm-readobj.h | 45 enum OutputStyleTy { LLVM, GNU, JSON, UNKNOWN }; enumerator
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | JSON.cpp | 366 Parser(StringRef JSON) in Parser() argument 367 : Start(JSON.begin()), P(JSON.begin()), End(JSON.end()) {} in Parser() 683 Expected<Value> parse(StringRef JSON) { in parse() argument 684 Parser P(JSON); in parse()
|
| H A D | ScopedPrinter.cpp | 41 : ScopedPrinter(OS, ScopedPrinter::ScopedPrinterKind::JSON), in JSONScopedPrinter()
|