Home
last modified time | relevance | path

Searched refs:json (Results 1 – 25 of 343) sorted by relevance

12345678910>>...14

/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Doptinfo-emit-json.cc56 m_root_tuple = new json::array (); in optrecord_json_writer()
59 json::object *metadata = new json::object (); in optrecord_json_writer()
61 metadata->set ("format", new json::string ("1")); in optrecord_json_writer()
62 json::object *generator = new json::object (); in optrecord_json_writer()
64 generator->set ("name", new json::string (lang_hooks.name)); in optrecord_json_writer()
65 generator->set ("pkgversion", new json::string (pkgversion_string)); in optrecord_json_writer()
66 generator->set ("version", new json::string (version_string)); in optrecord_json_writer()
68 generator->set ("target", new json::string (TARGET_NAME)); in optrecord_json_writer()
75 json::array *passes = new json::array (); in optrecord_json_writer()
86 json::array *records = new json::array (); in optrecord_json_writer()
[all …]
H A Ddiagnostic-format-json.cc33 static json::array *toplevel_array;
37 static json::object *cur_group;
42 static json::array *cur_children_array;
46 json::value *
50 json::object *result = new json::object (); in json_from_expanded_location()
52 result->set ("file", new json::string (exploc.file)); in json_from_expanded_location()
53 result->set ("line", new json::integer_number (exploc.line)); in json_from_expanded_location()
69 result->set (column_fields[i].name, new json::integer_number (col)); in json_from_expanded_location()
74 result->set ("column", new json::integer_number (the_column)); in json_from_expanded_location()
81 static json::object *
[all …]
H A Doptinfo-emit-json.h39 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);
46 json::object *optinfo_to_json (const optinfo *optinfo);
47 void add_pass_list (json::array *arr, opt_pass *pass);
54 json::array *m_root_tuple;
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Doptinfo-emit-json.cc56 m_root_tuple = new json::array (); in optrecord_json_writer()
59 json::object *metadata = new json::object (); in optrecord_json_writer()
61 metadata->set ("format", new json::string ("1")); in optrecord_json_writer()
62 json::object *generator = new json::object (); in optrecord_json_writer()
64 generator->set ("name", new json::string (lang_hooks.name)); in optrecord_json_writer()
65 generator->set ("pkgversion", new json::string (pkgversion_string)); in optrecord_json_writer()
66 generator->set ("version", new json::string (version_string)); in optrecord_json_writer()
68 generator->set ("target", new json::string (TARGET_NAME)); in optrecord_json_writer()
75 json::array *passes = new json::array (); in optrecord_json_writer()
86 json::array *records = new json::array (); in optrecord_json_writer()
[all …]
H A Ddiagnostic-format-json.cc32 static json::array *toplevel_array;
36 static json::object *cur_group;
41 static json::array *cur_children_array;
45 json::value *
49 json::object *result = new json::object (); in json_from_expanded_location()
51 result->set ("file", new json::string (exploc.file)); in json_from_expanded_location()
52 result->set ("line", new json::integer_number (exploc.line)); in json_from_expanded_location()
53 result->set ("column", new json::integer_number (exploc.column)); in json_from_expanded_location()
59 static json::object *
70 json::object *result = new json::object (); in json_from_location_range()
[all …]
H A Doptinfo-emit-json.h39 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);
46 json::object *optinfo_to_json (const optinfo *optinfo);
47 void add_pass_list (json::array *arr, opt_pass *pass);
54 json::array *m_root_tuple;
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DSarifDiagnostics.cpp120 static json::Object createArtifactLocation(const FileEntry &FE) { in createArtifactLocation()
121 return json::Object{{"uri", fileNameToURI(getFileName(FE))}}; in createArtifactLocation()
124 static json::Object createArtifact(const FileEntry &FE) { in createArtifact()
125 return json::Object{{"location", createArtifactLocation(FE)}, in createArtifact()
126 {"roles", json::Array{"resultFile"}}, in createArtifact()
131 static json::Object createArtifactLocation(const FileEntry &FE, in createArtifactLocation()
132 json::Array &Artifacts) { in createArtifactLocation()
137 auto I = llvm::find_if(Artifacts, [&](const json::Value &File) { in createArtifactLocation()
138 if (const json::Object *Obj = File.getAsObject()) { in createArtifactLocation()
139 if (const json::Object *FileLoc = Obj->getObject("location")) { in createArtifactLocation()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-cov/
H A DCoverageExporterJson.cpp80 json::Array renderSegment(const coverage::CoverageSegment &Segment) { in renderSegment()
81 return json::Array({Segment.Line, Segment.Col, in renderSegment()
86 json::Array renderRegion(const coverage::CountedRegion &Region) { in renderRegion()
87 return json::Array({Region.LineStart, Region.ColumnStart, Region.LineEnd, in renderRegion()
93 json::Array renderBranch(const coverage::CountedRegion &Region) { in renderBranch()
94 return json::Array( in renderBranch()
101 json::Array renderRegions(ArrayRef<coverage::CountedRegion> Regions) { in renderRegions()
102 json::Array RegionArray; in renderRegions()
108 json::Array renderBranchRegions(ArrayRef<coverage::CountedRegion> Regions) { in renderBranchRegions()
109 json::Array RegionArray; in renderBranchRegions()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/TableGen/
H A DJSONBackend.cpp31 json::Value translateInit(const Init &I);
43 json::Value JSONEmitter::translateInit(const Init &I) { in translateInit()
53 json::Array array; in translateInit()
62 json::Array array; in translateInit()
73 json::Object obj; in translateInit()
96 json::Array args; in translateInit()
98 json::Array arg; in translateInit()
120 json::Object root; in run()
130 std::map<std::string, json::Array> instance_lists; in run()
141 json::Object obj; in run()
[all …]
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/tools/gbench/
H A Dreport.py98 def get_unique_benchmark_names(json): argument
103 uniqued = [x['name'] for x in json['benchmarks']
276 import json
283 json = json.load(f)
284 return json
293 json = self.load_results()
294 output_lines = get_unique_benchmark_names(json)
304 import json
312 json1 = json.load(f)
314 json2 = json.load(f)
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/
H A Djson.d18 module std.json;
443 immutable json = parseJSON(s);
444 assert(json["a"].get!double == 123.0);
445 assert(json["a"].get!int == 123);
446 assert(json["a"].get!uint == 123);
447 assert(json["b"].get!double == 3.1415);
448 assertThrown!JSONException(json["b"].get!int);
449 assert(json["c"].get!string == "text");
450 assert(json["d"].get!bool == true);
451 assertNotThrown(json["e"].get!(JSONValue[]));
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/DumpTool/
H A DASTSrcLocProcessor.cpp52 llvm::json::Object toJSON(llvm::StringMap<std::vector<StringRef>> const &Obj) { in toJSON()
53 using llvm::json::toJSON; in toJSON()
55 llvm::json::Object JsonObj; in toJSON()
62 llvm::json::Object toJSON(llvm::StringMap<std::string> const &Obj) { in toJSON()
63 using llvm::json::toJSON; in toJSON()
65 llvm::json::Object JsonObj; in toJSON()
72 llvm::json::Object toJSON(ClassData const &Obj) { in toJSON()
73 llvm::json::Object JsonObj; in toJSON()
92 llvm::json::Object toJSON(llvm::StringMap<ClassData> const &Obj) { in toJSON()
93 using llvm::json::toJSON; in toJSON()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Djson.d18 module std.json;
398 static assert(false, text(`unable to convert type "`, T.stringof, `" to json`)); in assign()
703 JSONValue parseJSON(T)(T json, int maxDepth = -1, JSONOptions options = JSONOptions.none)
718 if (json.empty) return root;
731 if (json.empty) error("Unexpected end of data."); in popChar()
734 Char c = json[0]; in popChar()
735 json = json[1..$]; in popChar()
739 Char c = json.front; in popChar()
740 json.popFront(); in popChar()
760 if (json.empty) return '\0'; in peekChar()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/analyzer/
H A Dsm.cc79 json::value *
85 return new json::string (pp_formatted_text (&pp)); in to_json()
145 json::object *
148 json::object *sm_obj = new json::object (); in to_json()
150 sm_obj->set ("name", new json::string (m_name)); in to_json()
152 json::array *states_arr = new json::array (); in to_json()
H A Dsupergraph.cc460 json::object *
463 json::object *sgraph_obj = new json::object (); in to_json()
467 json::array *nodes_arr = new json::array (); in to_json()
477 json::array *edges_arr = new json::array (); in to_json()
715 json::object *
718 json::object *snode_obj = new json::object (); in to_json()
720 snode_obj->set ("idx", new json::integer_number (m_index)); in to_json()
721 snode_obj->set ("bb_idx", new json::integer_number (m_bb->index)); in to_json()
723 snode_obj->set ("fun", new json::string (function_name (fun))); in to_json()
731 new json::string (pp_formatted_text (&pp))); in to_json()
[all …]
H A Dcall-string.cc143 json::value *
146 json::array *arr = new json::array (); in to_json()
150 json::object *e_obj = new json::object (); in to_json()
152 new json::integer_number (e.m_callee->m_index)); in to_json()
154 new json::integer_number (e.m_caller->m_index)); in to_json()
156 new json::string (function_name (e.m_caller->m_fun))); in to_json()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DJSON.cpp18 namespace json { namespace
63 const json::Object *Object::getObject(StringRef K) const { in getObject()
68 json::Object *Object::getObject(StringRef K) { in getObject()
73 const json::Array *Object::getArray(StringRef K) const { in getArray()
78 json::Array *Object::getArray(StringRef K) { in getArray()
103 : Value(json::Array(Elements)) {} in Value()
121 create<json::Object>(M.as<json::Object>()); in copyFrom()
124 create<json::Array>(M.as<json::Array>()); in copyFrom()
146 create<json::Object>(std::move(M.as<json::Object>())); in moveFrom()
150 create<json::Array>(std::move(M.as<json::Array>())); in moveFrom()
[all …]
/netbsd-src/external/gpl3/gcc/dist/contrib/
H A Dmark_spam.py25 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],
/netbsd-src/external/gpl3/gcc.old/dist/contrib/
H A Dmark_spam.py25 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],
/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/tools/gbench/
H A Dreport.py137 import json
142 json1 = json.load(f)
144 json2 = json.load(f)
175 import json
179 json = json.load(f)
180 return json
189 json = self.load_result()
190 json1 = filter_benchmark(json, "BM_Z.ro", ".")
191 json2 = filter_benchmark(json, "BM_O.e", ".")
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/
H A DCMakeLists.txt39 # The generation of ASTNodeAPI.json takes a long time in a
56 COMMENT Generate ASTNodeAPI.json
57 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ASTNodeAPI.json
69 --json-output-path ${CMAKE_CURRENT_BINARY_DIR}/ASTNodeAPI.json
73 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ASTNodeAPI.json
79 DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ASTNodeAPI.json
84 --json-input-path ${CMAKE_CURRENT_BINARY_DIR}/ASTNodeAPI.json
/netbsd-src/external/mpl/bind/dist/bin/tests/system/statschannel/
H A Dtests.sh23 if ! $FEATURETEST --have-json-c; then
80 json) path='json/v1/zones' ;;
96 json) path='json/v1/xfrins' ;;
186 echo_i "checking consistency between named.stats and xml/json ($n)"
209 file=$($PERL fetch.pl -p ${EXTRAPORT1} json/v1/server)
210 mv $file json.stats
211 $PERL server-json.pl >json
[all...]
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-mca/Views/
H A DInstructionView.cpp30 json::Value InstructionView::toJSON() const { in toJSON()
31 json::Object JO; in toJSON()
32 json::Array SourceInfo; in toJSON()
39 json::Array Resources; in toJSON()
55 …JO.try_emplace("Resources", json::Object({{"CPUName", MCPU}, {"Resources", std::move(Resources)}})… in toJSON()
H A DInstructionInfoView.cpp124 json::Object
126 json::Object JO({{"NumMicroOpcodes", IIVD.NumMicroOpcodes}, in toJSON()
135 json::Value InstructionInfoView::toJSON() const { in toJSON()
138 return json::Value(0); in toJSON()
143 json::Array InstInfo; in toJSON()
146 json::Object JO = toJSON(IIVDEntry); in toJSON()
150 return json::Value(std::move(InstInfo)); in toJSON()
/netbsd-src/external/apache2/llvm/dist/clang/utils/
H A Dmodule-deps-to-rsp.py17 import json
35 def parseFullDeps(json): argument
37 for m in json['modules']:
39 ret.translation_units = json['translation-units']
56 full_deps = parseFullDeps(json.load(open(args.full_deps_file, 'r')))

12345678910>>...14