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

Method set

Utilities/cmjsoncpp/src/lib_json/json_value.cpp:1403–1409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1401}
1402
1403void Value::Comments::set(CommentPlacement slot, String comment) {
1404 if (slot >= CommentPlacement::numberOfCommentPlacement)
1405 return;
1406 if (!ptr_)
1407 ptr_ = std::unique_ptr<Array>(new Array());
1408 (*ptr_)[slot] = std::move(comment);
1409}
1410
1411void Value::setComment(String comment, CommentPlacement placement) {
1412 if (!comment.empty() && (comment.back() == '\n')) {

Callers 4

testEditionFunction · 0.80
testChecksFunction · 0.80
setCommentMethod · 0.80
StateMethod · 0.80

Calls 1

moveFunction · 0.85

Tested by 2

testEditionFunction · 0.64
testChecksFunction · 0.64