[clang-tools-extra] a38d13e - [clangd] Use TimePoint<> instead of system_clock::time_point, it does matter after all.

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 25 03:51:20 PST 2020


Author: Sam McCall
Date: 2020-11-25T12:49:24+01:00
New Revision: a38d13ed3635bfdd35226e8d8d0661a42bcd35c6

URL: https://github.com/llvm/llvm-project/commit/a38d13ed3635bfdd35226e8d8d0661a42bcd35c6
DIFF: https://github.com/llvm/llvm-project/commit/a38d13ed3635bfdd35226e8d8d0661a42bcd35c6.diff

LOG: [clangd] Use TimePoint<> instead of system_clock::time_point, it does matter after all.

Added: 
    

Modified: 
    clang-tools-extra/clangd/support/FileCache.h

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/support/FileCache.h b/clang-tools-extra/clangd/support/FileCache.h
index 75782e9ae021..ffc5deb7442b 100644
--- a/clang-tools-extra/clangd/support/FileCache.h
+++ b/clang-tools-extra/clangd/support/FileCache.h
@@ -71,7 +71,7 @@ class FileCache {
   // Time when the cache was known valid (reflected disk state).
   mutable std::chrono::steady_clock::time_point ValidTime;
   // Filesystem metadata corresponding to the currently cached data.
-  mutable std::chrono::system_clock::time_point ModifiedTime;
+  mutable llvm::sys::TimePoint<> ModifiedTime;
   mutable uint64_t Size;
 };
 


        


More information about the cfe-commits mailing list