MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / printArgument

Function printArgument

src/attributes.cpp:1096–1108  ·  view source on GitHub ↗

Print argument

Source from the content-addressed store, hash-verified

1094
1095 // Print argument
1096 void printArgument(std::ostream& os,
1097 const Argument& argument,
1098 bool printDefault = true) {
1099 if (!argument.empty()) {
1100 os << argument.type();
1101 if (!argument.name().empty()) {
1102 os << " ";
1103 os << argument.name();
1104 if (printDefault && !argument.defaultValue().empty())
1105 os << " = " << argument.defaultValue(); // #nocov
1106 }
1107 }
1108 }
1109
1110 // Argument operator <<
1111 std::ostream& operator<<(std::ostream& os, const Argument& argument) {// #nocov start

Callers 2

attributes.cppFile · 0.85
printFunctionFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected