diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-06-23 21:02:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-07-03 11:37:45 (GMT) |
commit | 49f3e0ab6f46d7c9118b4b858ccdeab7c547bf5a (patch) | |
tree | 74febf4a34111394d039f77f21987b82bcc93a76 /Source/cmStandardLevelResolver.h | |
parent | 29d2d4805fbad653761ee92bbd0850e1c20de37b (diff) | |
download | CMake-49f3e0ab6f46d7c9118b4b858ccdeab7c547bf5a.zip CMake-49f3e0ab6f46d7c9118b4b858ccdeab7c547bf5a.tar.gz CMake-49f3e0ab6f46d7c9118b4b858ccdeab7c547bf5a.tar.bz2 |
cmStandardLevelResolver: Refactor to remove duplicate code
This will make it easier to add new languages that have standard flags.
Diffstat (limited to 'Source/cmStandardLevelResolver.h')
-rw-r--r-- | Source/cmStandardLevelResolver.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/Source/cmStandardLevelResolver.h b/Source/cmStandardLevelResolver.h index 666d6d3..193c053 100644 --- a/Source/cmStandardLevelResolver.h +++ b/Source/cmStandardLevelResolver.h @@ -45,67 +45,11 @@ public: std::string const& rhs) const; private: - bool AddRequiredTargetCFeature(cmTarget* target, const std::string& feature, - std::string const& lang, - std::string* error = nullptr) const; - bool AddRequiredTargetCxxFeature(cmTarget* target, - const std::string& feature, - std::string const& lang, - std::string* error = nullptr) const; - bool AddRequiredTargetCudaFeature(cmTarget* target, - const std::string& feature, - std::string const& lang, - std::string* error = nullptr) const; - bool CheckCompileFeaturesAvailable(const std::string& targetName, const std::string& feature, std::string& lang, std::string* error) const; - void CheckNeededCLanguage(const std::string& feature, - std::string const& lang, bool& needC90, - bool& needC99, bool& needC11) const; - void CheckNeededCxxLanguage(const std::string& feature, - std::string const& lang, bool& needCxx98, - bool& needCxx11, bool& needCxx14, - bool& needCxx17, bool& needCxx20) const; - void CheckNeededCudaLanguage(const std::string& feature, - std::string const& lang, bool& needCuda03, - bool& needCuda11, bool& needCuda14, - bool& needCuda17, bool& needCuda20) const; - - bool GetNewRequiredCStandard(const std::string& targetName, - const std::string& feature, - std::string const& lang, - cmProp currentLangStandardValue, - std::string& newRequiredStandard, - std::string* error = nullptr) const; - bool GetNewRequiredCxxStandard(const std::string& targetName, - const std::string& feature, - std::string const& lang, - cmProp currentLangStandardValue, - std::string& newRequiredStandard, - std::string* error = nullptr) const; - bool GetNewRequiredCudaStandard(const std::string& targetName, - const std::string& feature, - std::string const& lang, - cmProp currentLangStandardValue, - std::string& newRequiredStandard, - std::string* error = nullptr) const; - - bool HaveCStandardAvailable(cmGeneratorTarget const* target, - std::string const& lang, - std::string const& config, - const std::string& feature) const; - bool HaveCxxStandardAvailable(cmGeneratorTarget const* target, - std::string const& lang, - std::string const& config, - const std::string& feature) const; - bool HaveCudaStandardAvailable(cmGeneratorTarget const* target, - std::string const& lang, - std::string const& config, - const std::string& feature) const; - cmMakefile* Makefile; }; #endif |