MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / join

Function join

lib/importproject.cpp:1431–1438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1429}
1430
1431static std::string join(const std::list<std::string> &strlist, const char *sep)
1432{
1433 std::string ret;
1434 for (const std::string &s : strlist) {
1435 ret += (ret.empty() ? "" : sep) + s;
1436 }
1437 return ret;
1438}
1439
1440static std::string istream_to_string(std::istream &istr)
1441{

Callers 15

loadCppcheckCfgMethod · 0.85
joinRelativePatternFunction · 0.85
createMethod · 0.85
getFullPathFunction · 0.85
getAnalyzerInfoFileMethod · 0.85
joinMethod · 0.85
StdLoggerMethod · 0.85
testMissingInclude6Method · 0.85
joinMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by 14

testMissingInclude6Method · 0.68
joinMethod · 0.68
getAbsolutePathMethod · 0.68
findBaseDirMethod · 0.68
addFilesMethod · 0.68
nooptionsWithCfgMethod · 0.68
helpshortWithCfgMethod · 0.68
helplongWithCfgMethod · 0.68
versionWithCfgMethod · 0.68