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

Method attributeWarning

src/attributes.cpp:1766–1782  ·  view source on GitHub ↗

Print an attribute parsing related warning

Source from the content-addressed store, hash-verified

1764
1765 // Print an attribute parsing related warning
1766 void SourceFileAttributesParser::attributeWarning( // #nocov start
1767 const std::string& message,
1768 const std::string& attribute,
1769 size_t lineNumber) {
1770
1771 // get basename of source file for warning message
1772 Rcpp::Function basename = Rcpp::Environment::base_env()["basename"];
1773 std::string file = Rcpp::as<std::string>(basename(sourceFile_));
1774
1775 std::ostringstream ostr;
1776 ostr << message;
1777 if (!attribute.empty())
1778 ostr << " for " << attribute << " attribute";
1779 ostr << " at " << file << ":" << lineNumber;
1780
1781 showWarning(ostr.str());
1782 }
1783
1784 void SourceFileAttributesParser::attributeWarning(
1785 const std::string& message,

Callers

nothing calls this directly

Calls 3

base_envFunction · 0.85
showWarningFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected