This commit is contained in:
parent
b26b78b86d
commit
bc5023775d
|
@ -1629,10 +1629,10 @@ void CmdLineParser::printHelp() const
|
||||||
mLogger.printRaw(oss.str());
|
mLogger.printRaw(oss.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdLineParser::isCppcheckPremium() {
|
bool CmdLineParser::isCppcheckPremium() const {
|
||||||
Settings settings;
|
if (mSettings.cppcheckCfgProductName.empty())
|
||||||
settings.loadCppcheckCfg(); // TODO: how to handle errors?
|
mSettings.loadCppcheckCfg();
|
||||||
return startsWith(settings.cppcheckCfgProductName, "Cppcheck Premium");
|
return startsWith(mSettings.cppcheckCfgProductName, "Cppcheck Premium");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CmdLineParser::tryLoadLibrary(Library& destination, const std::string& basepath, const char* filename)
|
bool CmdLineParser::tryLoadLibrary(Library& destination, const std::string& basepath, const char* filename)
|
||||||
|
|
|
@ -111,7 +111,7 @@ protected:
|
||||||
void printHelp() const;
|
void printHelp() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static bool isCppcheckPremium();
|
bool isCppcheckPremium() const;
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
bool parseNumberArg(const char* const arg, std::size_t offset, T& num, bool mustBePositive = false)
|
bool parseNumberArg(const char* const arg, std::size_t offset, T& num, bool mustBePositive = false)
|
||||||
|
|
Loading…
Reference in New Issue