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

Function storeInput

lib/tokenlist.cpp:340–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338#include <fstream>
339
340static void storeInput(const char* data, size_t size)
341{
342 static std::atomic_uint64_t num(0);
343 {
344 std::ofstream out(STORE_INPUT_DIR "/" + std::to_string(num++));
345 out.write(data, size);
346 }
347}
348#endif
349
350bool TokenList::createTokensFromBufferInternal(const char* data, size_t size, const std::string& file0)

Callers 1

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected