MCPcopy Create free account
hub / github.com/Kitware/CMake / addComment

Method addComment

Utilities/cmjsoncpp/src/lib_json/json_reader.cpp:372–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372void Reader::addComment(Location begin, Location end,
373 CommentPlacement placement) {
374 assert(collectComments_);
375 const String& normalized = normalizeEOL(begin, end);
376 if (placement == commentAfterOnSameLine) {
377 assert(lastValue_ != nullptr);
378 lastValue_->setComment(normalized, placement);
379 } else {
380 commentsBefore_ += normalized;
381 }
382}
383
384bool Reader::readCStyleComment() {
385 while ((current_ + 1) < end_) {

Callers

nothing calls this directly

Calls 1

setCommentMethod · 0.80

Tested by

no test coverage detected