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

Method addComment

src/jsoncpp.cpp:575–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

normalizeEOLFunction · 0.85
setCommentMethod · 0.80

Tested by

no test coverage detected