MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / addComment

Method addComment

vrclient_x64/jsoncpp.cpp:574–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574void
575Reader::addComment(Location begin, Location end, CommentPlacement placement) {
576 assert(collectComments_);
577 const std::string& normalized = normalizeEOL(begin, end);
578 if (placement == commentAfterOnSameLine) {
579 assert(lastValue_ != 0);
580 lastValue_->setComment(normalized, placement);
581 } else {
582 commentsBefore_ += normalized;
583 }
584}
585
586bool Reader::readCStyleComment() {
587 while (current_ != end_) {

Callers

nothing calls this directly

Calls 2

normalizeEOLFunction · 0.85
setCommentMethod · 0.80

Tested by

no test coverage detected