diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-08-24 20:50:15 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-01 17:08:14 (GMT) |
commit | e141bc950a1970c6bc96fa5f55fd60c6aedbb2d0 (patch) | |
tree | 0b6b9931c33a5de02a82f444925bfeabe9700160 /Source/cmMakefile.h | |
parent | d3e8eb504137dde90a73f1b46f97f889af46db18 (diff) | |
download | CMake-e141bc950a1970c6bc96fa5f55fd60c6aedbb2d0.zip CMake-e141bc950a1970c6bc96fa5f55fd60c6aedbb2d0.tar.gz CMake-e141bc950a1970c6bc96fa5f55fd60c6aedbb2d0.tar.bz2 |
Detect unused variables
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index cec2738..184253a 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -63,6 +63,8 @@ public: /* return true if a variable has been initialized */ bool VariableInitialized(const char* ) const; + /* return true if a variable has been used */ + bool VariableUsed(const char* ) const; /* return true if a variable has been set with set(foo ) */ @@ -931,6 +933,10 @@ private: // should this makefile be processed before or after processing the parent bool PreOrder; + // Unused variable flags + bool FindUnused; + bool DefaultToUsed; + // stack of list files being read std::deque<cmStdString> ListFileStack; |