Renamed method
This commit is contained in:
parent
380ecc408f
commit
46307df9b6
|
@ -714,7 +714,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
|
||||||
_settings->platform(Settings::Native);
|
_settings->platform(Settings::Native);
|
||||||
else if (platform == "unspecified")
|
else if (platform == "unspecified")
|
||||||
_settings->platform(Settings::Unspecified);
|
_settings->platform(Settings::Unspecified);
|
||||||
else if (!_settings->platformFile(argv[0], platform)) {
|
else if (!_settings->loadPlatformFile(argv[0], platform)) {
|
||||||
std::string message("cppcheck: error: unrecognized platform: \"");
|
std::string message("cppcheck: error: unrecognized platform: \"");
|
||||||
message += platform;
|
message += platform;
|
||||||
message += "\".";
|
message += "\".";
|
||||||
|
|
|
@ -154,7 +154,7 @@ bool cppcheck::Platform::platform(cppcheck::Platform::PlatformType type)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool cppcheck::Platform::platformFile(const char exename[], const std::string &filename)
|
bool cppcheck::Platform::loadPlatformFile(const char exename[], const std::string &filename)
|
||||||
{
|
{
|
||||||
// open file..
|
// open file..
|
||||||
tinyxml2::XMLDocument doc;
|
tinyxml2::XMLDocument doc;
|
||||||
|
|
|
@ -100,8 +100,13 @@ namespace cppcheck {
|
||||||
/** set the platform type for predefined platforms */
|
/** set the platform type for predefined platforms */
|
||||||
bool platform(PlatformType type);
|
bool platform(PlatformType type);
|
||||||
|
|
||||||
/** set the platform type for user specified platforms */
|
/**
|
||||||
bool platformFile(const char exename[], const std::string &filename);
|
* load platform file
|
||||||
|
* @param exename application path
|
||||||
|
* @param filename platform filename
|
||||||
|
* @return returns true if file was loaded successfully
|
||||||
|
*/
|
||||||
|
bool loadPlatformFile(const char exename[], const std::string &filename);
|
||||||
|
|
||||||
/** load platform from xml document, primarily for testing */
|
/** load platform from xml document, primarily for testing */
|
||||||
bool loadFromXmlDocument(const tinyxml2::XMLDocument *doc);
|
bool loadFromXmlDocument(const tinyxml2::XMLDocument *doc);
|
||||||
|
|
Loading…
Reference in New Issue