Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chipsalliance/Surelog
/ LinesCount
Function
LinesCount
src/SourceCompile/PreprocessFile.cpp:347–349 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
345
}
346
347
static size_t LinesCount(std::string_view s) {
348
return std::count(s.begin(), s.end(),
'\n'
);
349
}
350
351
bool PreprocessFile::preprocess() {
352
m_result.clear();
Callers
2
preprocess
Method · 0.85
append
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected