MCPcopy Create free account
hub / github.com/Compaile/ctrack / log_contexts

Method log_contexts

test/doctest.h:5453–5464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5451 , opt(co) {}
5452
5453 void log_contexts() {
5454 int num_contexts = get_num_active_contexts();
5455 if(num_contexts) {
5456 auto contexts = get_active_contexts();
5457 std::stringstream ss;
5458 for(int i = 0; i < num_contexts; ++i) {
5459 contexts[i]->stringify(&ss);
5460 xml.scopedElement("Info").writeText(ss.str());
5461 ss.str("");
5462 }
5463 }
5464 }
5465
5466 unsigned line(unsigned l) const { return opt.no_line_numbers ? 0 : l; }
5467

Callers

nothing calls this directly

Calls 2

stringifyMethod · 0.80
scopedElementMethod · 0.80

Tested by

no test coverage detected