diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-07-27 09:49:37 -0400 |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-07-27 09:49:37 -0400 |
commit | f85f919dbc37e01f9ef8dfdc9e4db9e413fbf20e (patch) | |
tree | 48a12d7d807566cc6de90bd986d2b5de23012973 /Source/cmDependsC.h | |
parent | 90cefde755e6bc4b04ce74ae9b886f2ce3633e96 (diff) | |
download | cmake-f85f919dbc37e01f9ef8dfdc9e4db9e413fbf20e.tar.gz |
ENH: reduce the number of files produced still needs a bit more cleanup
Diffstat (limited to 'Source/cmDependsC.h')
-rw-r--r-- | Source/cmDependsC.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/Source/cmDependsC.h b/Source/cmDependsC.h index 2f16d7719c..fb2b29d81b 100644 --- a/Source/cmDependsC.h +++ b/Source/cmDependsC.h @@ -30,22 +30,16 @@ public: /** Checking instances need to know the build directory name and the relative path from the build directory to the target file. */ cmDependsC(); - - /** Scanning need to know the build directory name, the relative - path from the build directory to the target file, the source - file from which to start scanning, and the include file search - path. It also uses the include file regular expressions. - This is a good example of why constructors should not take arguments. - */ - cmDependsC(const char* sourceFile, std::vector<std::string> const& includes, + cmDependsC(std::vector<std::string> const& includes, const char* scanRegex, const char* complainRegex); /** Virtual destructor to cleanup subclasses properly. */ virtual ~cmDependsC(); - + protected: // Implement writing/checking methods required by superclass. - virtual bool WriteDependencies(std::ostream& os); + virtual bool WriteDependencies(const char *src, + const char *file, std::ostream& os); virtual bool CheckDependencies(std::istream& is); // Method to scan a single file. @@ -56,9 +50,6 @@ protected: std::string& dependee); const char* ParseFileName(const char* in, std::string& name); - // The source file from which to start scanning. - std::string m_SourceFile; - // The include file search path. std::vector<std::string> const* m_IncludePath; @@ -69,7 +60,7 @@ protected: // recursively and which to complain about not finding. cmsys::RegularExpression m_IncludeRegexScan; cmsys::RegularExpression m_IncludeRegexComplain; - + // Data structures for dependency graph walk. struct UnscannedEntry { |