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

Function getTimeDefine

externals/simplecpp/simplecpp.cpp:3335–3340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3333}
3334
3335static std::string getTimeDefine(const struct tm *timep)
3336{
3337 char buf[] = "??:??:??";
3338 strftime(buf, sizeof(buf), "%H:%M:%S", timep);
3339 return std::string("\"").append(buf).append("\"");
3340}
3341
3342void simplecpp::preprocess(simplecpp::TokenList &output, const simplecpp::TokenList &rawtokens, std::vector<std::string> &files, simplecpp::FileDataCache &cache, const simplecpp::DUI &dui, simplecpp::OutputList *outputList, std::list<simplecpp::MacroUsage> *macroUsage, std::list<simplecpp::IfCond> *ifCond)
3343{

Callers 1

preprocessMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected