Lines Matching refs:Object

120 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()
131 static json::Object createArtifactLocation(const FileEntry &FE, in createArtifactLocation()
138 if (const json::Object *Obj = File.getAsObject()) { in createArtifactLocation()
139 if (const json::Object *FileLoc = Obj->getObject("location")) { in createArtifactLocation()
153 return json::Object{{"uri", FileURI}, {"index", Index}}; in createArtifactLocation()
181 static json::Object createTextRegion(const LangOptions &LO, SourceRange R, in createTextRegion()
183 json::Object Region{ in createTextRegion()
198 static json::Object createPhysicalLocation(const LangOptions &LO, in createPhysicalLocation()
202 return json::Object{ in createPhysicalLocation()
221 static json::Object createThreadFlowLocation(json::Object &&Location, in createThreadFlowLocation()
223 return json::Object{{"location", std::move(Location)}, in createThreadFlowLocation()
227 static json::Object createMessage(StringRef Text) { in createMessage()
228 return json::Object{{"text", Text.str()}}; in createMessage()
231 static json::Object createLocation(json::Object &&PhysicalLocation, in createLocation()
233 json::Object Ret{{"physicalLocation", std::move(PhysicalLocation)}}; in createLocation()
256 static json::Object createThreadFlow(const LangOptions &LO, in createThreadFlow()
271 return json::Object{{"locations", std::move(Locations)}}; in createThreadFlow()
274 static json::Object createCodeFlow(const LangOptions &LO, in createCodeFlow()
277 return json::Object{ in createCodeFlow()
281 static json::Object createResult(const LangOptions &LO, in createResult()
291 return json::Object{ in createResult()
325 static json::Object createRule(const PathDiagnostic &Diag) { in createRule()
327 json::Object Ret{ in createRule()
356 static json::Object createTool(std::vector<const PathDiagnostic *> &Diags, in createTool()
358 return json::Object{ in createTool()
359 {"driver", json::Object{{"name", "clang"}, in createTool()
366 static json::Object createRun(const LangOptions &LO, in createRun()
370 json::Object Tool = createTool(Diags, RuleMapping); in createRun()
375 return json::Object{{"tool", std::move(Tool)}, in createRun()
394 json::Object Sarif{ in FlushDiagnosticsImpl()