diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-10-12 17:52:29 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-10-12 17:52:29 (GMT) |
commit | f18e7c7ff7935a93076384ba15629942f559cc8d (patch) | |
tree | 85b1a0bc3002c93654f58ec579e73d549b0eec27 /Source/cmDependsC.h | |
parent | a51dfefe796c1c7108d92e79dc77607c8307ef4b (diff) | |
download | CMake-f18e7c7ff7935a93076384ba15629942f559cc8d.zip CMake-f18e7c7ff7935a93076384ba15629942f559cc8d.tar.gz CMake-f18e7c7ff7935a93076384ba15629942f559cc8d.tar.bz2 |
ENH: Improve performance of check build system by creating another file that is simpler to parse and therefore much faster overall
Diffstat (limited to 'Source/cmDependsC.h')
-rw-r--r-- | Source/cmDependsC.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Source/cmDependsC.h b/Source/cmDependsC.h index 26cfc1b..04648fd 100644 --- a/Source/cmDependsC.h +++ b/Source/cmDependsC.h @@ -38,19 +38,17 @@ public: virtual ~cmDependsC(); protected: + typedef std::vector<char> t_CharBuffer; + // Implement writing/checking methods required by superclass. virtual bool WriteDependencies(const char *src, - const char *file, std::ostream& os); - virtual bool CheckDependencies(std::istream& is); + const char *file, + std::ostream& makeDepends, + std::ostream& internalDepends); // Method to scan a single file. void Scan(std::istream& is, const char* directory); - // Method to parse a single dependency line. - bool ParseDependency(const char* line, std::string& depender, - std::string& dependee); - const char* ParseFileName(const char* in, std::string& name); - // Method to test for the existence of a file. bool FileExistsOrIsGenerated(const std::string& fname, std::set<cmStdString>& scanned, @@ -78,6 +76,7 @@ protected: }; std::set<cmStdString> m_Encountered; std::queue<UnscannedEntry> m_Unscanned; + t_CharBuffer m_Buffer; private: cmDependsC(cmDependsC const&); // Purposely not implemented. |