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

Method addComment

runtime/3rdparty/jsoncpp/jsoncpp.cpp:655–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655void Reader::addComment(Location begin, Location end, CommentPlacement placement)
656{
657 assert(collectComments_);
658 const String &normalized = normalizeEOL(begin, end);
659 if (placement == commentAfterOnSameLine)
660 {
661 assert(lastValue_ != nullptr);
662 lastValue_->setComment(normalized, placement);
663 }
664 else
665 {
666 commentsBefore_ += normalized;
667 }
668}
669
670bool Reader::readCStyleComment()
671{

Callers

nothing calls this directly

Calls 1

setCommentMethod · 0.80

Tested by

no test coverage detected