| /src/external/gpl3/gcc.old/dist/gcc/ |
| optinfo-emit-json.h | 1 /* Emit optimization information as JSON files. 24 #include "json.h" 28 /* A class for writing out optimization records in JSON format. */ 39 void add_record (json::object *obj); 40 json::object *impl_location_to_json (dump_impl_location_t loc); 41 json::object *location_to_json (location_t loc); 42 json::object *profile_count_to_json (profile_count count); 43 json::string *get_id_value_for_pass (opt_pass *pass); 44 json::object *pass_to_json (opt_pass *pass); 45 json::value *inlining_chain_to_json (location_t loc) [all...] |
| optinfo-emit-json.cc | 1 /* Emit optimization information as JSON files. 35 #include "optinfo-emit-json.h" 36 #include "json.h" 51 in-memory JSON representation. */ 56 m_root_tuple = new json::array (); 59 json::object *metadata = new json::object (); 61 metadata->set ("format", new json::string ("1")); 62 json::object *generator = new json::object () [all...] |
| diagnostic-format-json.cc | 0 /* JSON output for diagnostics 28 #include "json.h" 31 /* The top-level JSON array of pending diagnostics. */ 33 static json::array *toplevel_array; 35 /* The JSON object for the current diagnostic group. */ 37 static json::object *cur_group; 39 /* The JSON array for the "children" array within the current diagnostic 42 static json::array *cur_children_array; 44 /* Generate a JSON object for LOC. */ 46 json::value [all...] |
| /src/external/bsd/wpa/dist/src/utils/ |
| json.h | 2 * JavaScript Object Notation (JSON) parser (RFC7159) 36 void json_free(struct json_token *json); 37 struct json_token * json_get_member(struct json_token *json, const char *name); 38 struct wpabuf * json_get_member_base64url(struct json_token *json, 40 struct wpabuf * json_get_member_base64(struct json_token *json, 43 void json_add_int(struct wpabuf *json, const char *name, int val); 44 void json_add_string(struct wpabuf *json, const char *name, const char *val); 45 int json_add_string_escape(struct wpabuf *json, const char *name, 47 int json_add_base64url(struct wpabuf *json, const char *name, const void *val, 49 int json_add_base64(struct wpabuf *json, const char *name, const void *val [all...] |
| json.c | 2 * JavaScript Object Notation (JSON) parser (RFC7159) 13 #include "json.h" 108 "JSON: Truncated \\ escape"); 131 "JSON: Invalid \\u escape"); 144 "JSON: Unknown escape '%c'", *pos); 200 "JSON: Unexpected token state %d (name=%s type=%d)", 213 wpa_printf(MSG_DEBUG, "JSON: Maximum token limit exceeded"); 251 "JSON: Invalid state for start array/object"); 257 "JSON: Max depth exceeded"); 274 "JSON: Invalid state for end array/object") [all...] |
| Makefile | 12 json.o \
|
| /src/external/apache2/llvm/dist/llvm/tools/llvm-cov/ |
| CoverageExporterJson.cpp | 9 // This file implements export of code coverage data to JSON. 15 // The json code coverage export follows the following format 18 // -- Export: dict => Json representation of one CoverageMapping 53 #include "llvm/Support/JSON.h" 64 /// Unique type identifier for JSON coverage export. 65 #define LLVM_COVERAGE_EXPORT_JSON_TYPE_STR "llvm.coverage.json.export" 71 // The JSON library accepts int64_t, but profiling counts are stored as uint64_t. 80 json::Array renderSegment(const coverage::CoverageSegment &Segment) { 81 return json::Array({Segment.Line, Segment.Col, 86 json::Array renderRegion(const coverage::CountedRegion &Region) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
| SarifDiagnostics.cpp | 22 #include "llvm/Support/JSON.h" 120 static json::Object createArtifactLocation(const FileEntry &FE) { 121 return json::Object{{"uri", fileNameToURI(getFileName(FE))}}; 124 static json::Object createArtifact(const FileEntry &FE) { 125 return json::Object{{"location", createArtifactLocation(FE)}, 126 {"roles", json::Array{"resultFile"}}, 131 static json::Object createArtifactLocation(const FileEntry &FE, 132 json::Array &Artifacts) { 137 auto I = llvm::find_if(Artifacts, [&](const json::Value &File) { 138 if (const json::Object *Obj = File.getAsObject()) [all...] |
| /src/external/apache2/llvm/dist/llvm/utils/ |
| merge-stats.py | 12 import json 22 data = json.loads(text) 32 out = json.dumps(result, indent=2)
|
| /src/external/gpl3/gcc.old/dist/contrib/ |
| mark_spam.py | 25 import json 35 response = json.loads(r.text) 61 r = requests.put(u, json = data) 68 response = json.loads(r.text) 74 r = requests.put(u2, json = {'comment_id': comment_id, 'add': ['spam'], 'api_key': api_key}) 81 response = json.loads(r.text) 86 r = requests.put(url, json = {'ids': [attachment_id],
|
| /src/external/apache2/llvm/dist/clang/utils/ |
| module-deps-to-rsp.py | 10 # clang-scan-deps -compilation-database compile_commands.json ... > deps.json 11 # module-deps-to-rsp.py deps.json --module-name=ModuleName > module_name.cc1.rsp 12 # module-deps-to-rsp.py deps.json --tu-index=0 > tu.rsp 17 import json 35 def parseFullDeps(json): 37 for m in json['modules']: 39 ret.translation_units = json['translation-units'] 47 parser.add_argument("full_deps_file", help="Path to the full dependencies json file", 56 full_deps = parseFullDeps(json.load(open(args.full_deps_file, 'r')) [all...] |
| /src/external/apache2/llvm/dist/llvm/tools/llvm-mca/Views/ |
| InstructionView.cpp | 30 json::Value InstructionView::toJSON() const { 31 json::Object JO; 32 json::Array SourceInfo; 39 json::Array Resources; 55 JO.try_emplace("Resources", json::Object({{"CPUName", MCPU}, {"Resources", std::move(Resources)}}));
|
| View.h | 21 #include "llvm/Support/JSON.h" 39 json::Object JO; 41 OS << formatv("{0:2}", json::Value(std::move(JO))) << "\n"; 45 virtual json::Value toJSON() const { return "not implemented"; }
|
| InstructionInfoView.h | 81 json::Value toJSON() const override; 82 json::Object toJSON(const InstructionInfoViewData &IIVD) const;
|
| InstructionInfoView.cpp | 16 #include "llvm/Support/JSON.h" 123 // Construct a JSON object from a single InstructionInfoViewData object. 124 json::Object 126 json::Object JO({{"NumMicroOpcodes", IIVD.NumMicroOpcodes}, 135 json::Value InstructionInfoView::toJSON() const { 138 return json::Value(0); 143 json::Array InstInfo; 146 json::Object JO = toJSON(IIVDEntry); 150 return json::Value(std::move(InstInfo));
|
| /src/external/gpl3/gcc.old/dist/gcc/analyzer/ |
| sm.cc | 34 #include "json.h" 77 /* Return a new json::string describing the state. */ 79 json::value * 85 return new json::string (pp_formatted_text (&pp)); 141 /* Return a new json::object of the form 145 json::object * 148 json::object *sm_obj = new json::object (); 150 sm_obj->set ("name", new json::string (m_name)); 152 json::array *states_arr = new json::array () [all...] |
| /src/external/gpl3/gcc.old/usr.bin/common/ |
| Makefile | 12 SRCS= ${G_OBJS-libcommon:S/memory-block.o/memory-block.cc/:S/diagnostic-format-json.o/diagnostic-format-json.cc/:S/sort.o/sort.cc/:S/json.o/json.cc/:.o=.cc}
|
| defs.mk | 5 G_OBJS-libcommon=diagnostic-spec.o diagnostic.o diagnostic-color.o diagnostic-show-locus.o diagnostic-format-json.o json.o edit-context.o pretty-print.o intl.o sbitmap.o vec.o input.o hash-table.o ggc-none.o memory-block.o selftest.o selftest-diagnostic.o sort.o
|
| /src/external/apache2/llvm/dist/llvm/lib/TableGen/ |
| JSONBackend.cpp | 1 //===- JSONBackend.cpp - Generate a JSON dump of all records. -*- C++ -*-=====// 10 // of all the classes and records defined by the input, in JSON format. 19 #include "llvm/Support/JSON.h" 21 #define DEBUG_TYPE "json-emitter" 31 json::Value translateInit(const Init &I); 43 json::Value JSONEmitter::translateInit(const Init &I) { 45 // Init subclasses that we return as JSON primitive values of one 53 json::Array array; 62 json::Array array; 68 // Init subclasses that we return as JSON objects containing [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Tooling/DumpTool/ |
| ASTSrcLocProcessor.cpp | 12 #include "llvm/Support/JSON.h" 52 llvm::json::Object toJSON(llvm::StringMap<std::vector<StringRef>> const &Obj) { 53 using llvm::json::toJSON; 55 llvm::json::Object JsonObj; 62 llvm::json::Object toJSON(llvm::StringMap<std::string> const &Obj) { 63 using llvm::json::toJSON; 65 llvm::json::Object JsonObj; 72 llvm::json::Object toJSON(ClassData const &Obj) { 73 llvm::json::Object JsonObj; 92 llvm::json::Object toJSON(llvm::StringMap<ClassData> const &Obj) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Driver/ |
| DarwinSDKInfo.cpp | 11 #include "llvm/Support/JSON.h" 21 llvm::sys::path::append(Filepath, "SDKSettings.json"); 28 Expected<llvm::json::Value> Result = 29 llvm::json::parse(File.get()->getBuffer()); 41 return llvm::make_error<llvm::StringError>("invalid SDKSettings.json",
|
| /src/external/gpl3/gcc.old/usr.bin/gcov/ |
| Makefile | 6 SRCS= ${G_GCOV_OBJS:S/json.o/json.cc/:.o=.cc}
|
| /src/external/bsd/jemalloc.old/dist/include/jemalloc/internal/ |
| stats.h | 6 OPTION('J', json, false, true) \
|
| /src/external/bsd/jemalloc.old/include/jemalloc/internal/ |
| stats.h | 6 OPTION('J', json, false, true) \
|
| /src/external/gpl3/gcc.old/dist/libphobos/src/std/ |
| json.d | 9 References: $(LINK http://json.org/), $(LINK http://seriot.ch/parsing_json.html) 10 Source: $(PHOBOSSRC std/json.d) 18 module std.json; 30 // parse a file or string of json into a usable structure 48 // create a json struct 62 String literals used to represent special float values within JSON strings. 72 Flags that control how json is encoded and parsed. 84 JSON type enumeration 116 JSON value node 236 * Value getter/setter for boolean stored in JSON [all...] |