MCPcopy Create free account
hub / github.com/cinder/Cinder / addComment

Method addComment

src/jsoncpp/jsoncpp.cpp:537–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537void
538Reader::addComment(Location begin, Location end, CommentPlacement placement) {
539 assert(collectComments_);
540 const std::string& normalized = normalizeEOL(begin, end);
541 if (placement == commentAfterOnSameLine) {
542 assert(lastValue_ != 0);
543 lastValue_->setComment(normalized, placement);
544 } else {
545 commentsBefore_ += normalized;
546 }
547}
548
549bool Reader::readCStyleComment() {
550 while (current_ != end_) {

Callers

nothing calls this directly

Calls 3

assertFunction · 0.85
normalizeEOLFunction · 0.85
setCommentMethod · 0.80

Tested by

no test coverage detected