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

Method FileWithDetails

lib/filesettings.h:40–47  ·  view source on GitHub ↗

* @throws std::runtime_error thrown if given path is empty */

Source from the content-addressed store, hash-verified

38 * @throws std::runtime_error thrown if given path is empty
39 */
40 FileWithDetails(std::string path, Standards::Language lang, std::size_t size)
41 : mLang(lang)
42 , mSize(size)
43 {
44 setPath(std::move(path));
45 if (mPath.empty())
46 throw std::runtime_error("empty path specified");
47 }
48
49 void setPath(std::string path)
50 {

Callers

nothing calls this directly

Calls 2

setPathFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected