MCPcopy Create free account
hub / github.com/Samsung/UTopia / addComment

Method addComment

external/jsoncpp/jsoncpp.cpp:600–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600void Reader::addComment(Location begin, Location end,
601 CommentPlacement placement) {
602 assert(collectComments_);
603 const String &normalized = normalizeEOL(begin, end);
604 if (placement == commentAfterOnSameLine) {
605 assert(lastValue_ != nullptr);
606 lastValue_->setComment(normalized, placement);
607 } else {
608 commentsBefore_ += normalized;
609 }
610}
611
612bool Reader::readCStyleComment() {
613 while ((current_ + 1) < end_) {

Callers

nothing calls this directly

Calls 1

setCommentMethod · 0.80

Tested by

no test coverage detected