summaryrefslogtreecommitdiffstats
path: root/Source/cmFileTime.h
Commit message (Collapse)AuthorAgeFilesLines
* Source: Fix Clang -Wdeprecated warningsSean McBride2021-10-151-0/+2
| | | | Applied C++ 'rule of three'.
* cmFileTime: Fix overflow on time computationMarc Chevrier2020-11-231-20/+32
| | | | | | On Windows, time starting point is Januray, 1st of 1601. So computing number of nanoseconds from this date exceeds 64bit capabilities.
* Modernize: Use #pragma once in all header filesKitware Robot2020-09-031-4/+1
| | | | | | | | | | | | | | | | #pragma once is a widely supported compiler pragma, even though it is not part of the C++ standard. Many of the issues keeping #pragma once from being standardized (distributed filesystems, build farms, hard links, etc.) do not apply to CMake - it is easy to build CMake on a single machine. CMake also does not install any header files which can be consumed by other projects (though cmCPluginAPI.h has been deliberately omitted from this conversion in case anyone is still using it.) Finally, #pragma once has been required to build CMake since at least August 2017 (7f29bbe6 enabled server mode unconditionally, which had been using #pragma once since September 2016 (b13d3e0d)). The fact that we now require C++11 filters out old compilers, and it is unlikely that there is a compiler which supports C++11 but does not support #pragma once.
* clang-tidy: Replace typedef with usingRegina Pfeifer2019-09-031-1/+1
|
* cmFileTime: Make cmFileTime::Compare method constSebastian Holtermann2019-03-271-1/+1
|
* New cmFileTime classSebastian Holtermann2019-03-181-0/+130
The new cmFileTime class stores the file modification time as an OS independent nanosecond count. Its main use is to load and compare file modification times in nanosecond and second resolution.