MCPcopy Create free account
hub / github.com/aras-p/ClangBuildAnalyzer / ParseBuildEvents

Function ParseBuildEvents

src/BuildEvents.cpp:479–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477
478
479bool ParseBuildEvents(BuildEventsParser* parser, const std::string& fileName)
480{
481 using namespace simdjson;
482 dom::parser p;
483 dom::element doc;
484 auto error = p.load(fileName).get(doc);
485 if (error)
486 {
487 printf("%sWARN: JSON parse error in %s: %s.%s\n", col::kYellow, fileName.c_str(), error_message(error), col::kReset);
488 return false;
489 }
490
491 return parser->ParseRoot(doc, fileName);
492 //DebugPrintEvents(outEvents, outNames);
493}
494
495struct BufferedWriter
496{

Callers 1

ProcessJsonFilesFunction · 0.85

Calls 1

ParseRootMethod · 0.80

Tested by

no test coverage detected