Lines Matching refs:Object

144 static json::Object createMessage(StringRef Text) {
145 return json::Object{{"text", Text.str()}};
150 static json::Object createTextRegion(const SourceManager &SM,
154 json::Object Region{{"startLine", BeginCharLoc.getExpansionLineNumber()},
166 static json::Object createLocation(json::Object &&PhysicalLocation,
168 json::Object Ret{{"physicalLocation", std::move(PhysicalLocation)}};
201 static json::Object
202 createThreadFlowLocation(json::Object &&Location,
204 return json::Object{{"location", std::move(Location)},
209 json::Object
238 json::Object ArtifactLocationObject{{"uri", Location.URI}};
241 return json::Object{{{"artifactLocation", std::move(ArtifactLocationObject)},
245 json::Object &SarifDocumentWriter::getCurrentTool() {
273 json::Object &Tool = getCurrentTool();
276 json::Object Config{
280 json::Object Rule{
283 {"fullDescription", json::Object{{"text", R.Description}}},
289 json::Object &Driver = *Tool.getObject("driver");
293 json::Object &Run = getCurrentRun();
300 json::Object Loc{{"uri", A.Location.URI}};
304 json::Object Artifact;
326 json::Object Ret{{"locations", json::Array{}}};
329 json::Object PLoc = createPhysicalLocation(ThreadFlow.Range);
330 json::Object Loc = createLocation(std::move(PLoc), ThreadFlow.Message);
338 json::Object
340 return json::Object{{"threadFlows", createThreadFlows(ThreadFlows)}};
352 json::Object Tool{
354 json::Object{{"name", ShortToolName},
360 json::Object TheRun{{"tool", std::move(Tool)},
367 json::Object &SarifDocumentWriter::getCurrentRun() {
392 json::Object Ret{{"message", createMessage(Result.DiagnosticMessage)},
408 json::Object &Run = getCurrentRun();
413 json::Object SarifDocumentWriter::createDocument() {
417 json::Object Doc{