summaryrefslogtreecommitdiffstats
path: root/Source/cmDepends.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-03-27 13:35:05 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-03-27 17:11:36 (GMT)
commit5a15c9e7cb63fb5b884271a1184607a8fa87d442 (patch)
tree01ecc682e0671275282669a7c826dbcf505307bd /Source/cmDepends.h
parent5f6c236481da552dfdbfff6579dc9d833993adad (diff)
downloadCMake-5a15c9e7cb63fb5b884271a1184607a8fa87d442.zip
CMake-5a15c9e7cb63fb5b884271a1184607a8fa87d442.tar.gz
CMake-5a15c9e7cb63fb5b884271a1184607a8fa87d442.tar.bz2
cmDepends: Refactor cmDepends::CheckDependencies method
This patch changes the following issues in `cmDepends::CheckDependencies`: - Use the `std::string` based `std::getline` interface to read lines from a file instead of using raw reads into raw buffers. - To reduce the file system access, we load file times only once from `cmFileTimeCache` and keep them on the stack for later comparison. - When a file is removed from the file system we remove it from the `cmFileTimeCache` as well.
Diffstat (limited to 'Source/cmDepends.h')
-rw-r--r--Source/cmDepends.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/Source/cmDepends.h b/Source/cmDepends.h
index fc6571d..d9d5c67 100644
--- a/Source/cmDepends.h
+++ b/Source/cmDepends.h
@@ -8,7 +8,6 @@
#include <iosfwd>
#include <map>
#include <set>
-#include <stddef.h>
#include <string>
#include <vector>
@@ -105,10 +104,6 @@ protected:
// The full path to the target's build directory.
std::string TargetDirectory;
- size_t MaxPath = 16384;
- char* Dependee;
- char* Depender;
-
// The include file search path.
std::vector<std::string> IncludePath;