summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsC.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmDependsC.h')
-rw-r--r--Source/cmDependsC.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/Source/cmDependsC.h b/Source/cmDependsC.h
index 2f16d77..fb2b29d 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
{