MCPcopy Create free account
hub / github.com/Samsung/ONE / remove_comment

Function remove_comment

compiler/tfinfo/src/TensorInfoParser.cpp:44–49  ·  view source on GitHub ↗

remove comment

Source from the content-addressed store, hash-verified

42
43// remove comment
44void remove_comment(std::string &line)
45{
46 int pos = line.find_first_of("#");
47 if (pos != std::string::npos)
48 line.erase(pos);
49}
50
51std::string trim(const std::string &str)
52{

Callers 1

parse_lineFunction · 0.85

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected