Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
44
void 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
51
std::string trim(const std::string &str)
52
{
Callers
1
parse_line
Function · 0.85
Calls
1
erase
Method · 0.45
Tested by
no test coverage detected