MCPcopy Create free account
hub / github.com/MaskRay/ccls / lastWriteTime

Function lastWriteTime

src/utils.cc:146–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146std::optional<int64_t> lastWriteTime(const std::string &path) {
147 sys::fs::file_status status;
148 if (sys::fs::status(path, status))
149 return {};
150 return sys::toTimeT(status.getLastModificationTime());
151}
152
153std::optional<std::string> readContent(const std::string &filename) {
154 char buf[4096];

Callers 2

indexer_ParseFunction · 0.85
seenFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected