diff options
author | Michael Scott <michael.scott250@gmail.com> | 2015-11-29 12:39:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-12-01 14:40:43 (GMT) |
commit | 07388f83b69739116c8364e9443f10158fcdc912 (patch) | |
tree | ecd6ab97971a063dabd853908754874d5f3baa0b /Source/cmake.h | |
parent | 246b0bfbfda9a8f3091fc34fc92816aebaf60ae9 (diff) | |
download | CMake-07388f83b69739116c8364e9443f10158fcdc912.zip CMake-07388f83b69739116c8364e9443f10158fcdc912.tar.gz CMake-07388f83b69739116c8364e9443f10158fcdc912.tar.bz2 |
Refactor the -W options parser to be generic.
Refactor the -Wdev and -Wno-dev options parser to use a generic -W
parser that follows the GCC pattern, excluding support for
-Werror=TYPE and -Wno-error=TYPE formats for now.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index 45ac28e..1bd6d4d 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -68,6 +68,11 @@ class cmake DEPRECATION_WARNING }; + enum DiagLevel + { + DIAG_IGNORE, + DIAG_WARN + }; /** \brief Describes the working modes of cmake */ enum WorkingMode @@ -303,11 +308,7 @@ class cmake std::string const& GetCMakeEditCommand() const { return this->CMakeEditCommand; } - void SetSuppressDevWarnings(bool v) - { - this->SuppressDevWarnings = v; - this->DoSuppressDevWarnings = true; - } + void SetSuppressDevWarnings(bool v); /* * Get the state of the suppression of developer (author) warnings. * Returns false, by default, if developer warnings should be shown, true @@ -359,8 +360,7 @@ protected: cmGlobalGenerator *GlobalGenerator; cmCacheManager *CacheManager; - bool SuppressDevWarnings; - bool DoSuppressDevWarnings; + std::map<std::string, DiagLevel> DiagLevels; std::string GeneratorPlatform; std::string GeneratorToolset; |