MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / parse_comment

Method parse_comment

erpcgen/src/cpptemplate/cpptempl.cpp:2103–2115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2101}
2102
2103void TemplateParser::parse_comment()
2104{
2105 size_t pos = m_text.find("#}");
2106 if (pos == std::string::npos)
2107 {
2108 return;
2109 }
2110
2111 std::string comment_text = m_text.substr(1, pos - 1);
2112 m_current_line += count_newlines(comment_text);
2113
2114 check_omit_eol(pos, false);
2115}
2116
2117void TemplateParser::check_omit_eol(size_t pos, bool force_omit)
2118{

Callers

nothing calls this directly

Calls 1

count_newlinesFunction · 0.85

Tested by

no test coverage detected