astyle formatting, use isEnabled("warning") instead of isEnabled("style")

This commit is contained in:
Daniel Marjamäki 2013-07-28 16:13:16 +02:00
parent 1409461e4f
commit 9ff204f8bc
3 changed files with 13 additions and 12 deletions

View File

@ -524,7 +524,8 @@ void CheckIO::checkWrongPrintfScanfArguments()
bool _continue = false; bool _continue = false;
std::string width; std::string width;
unsigned int parameterPosition = 0; bool hasParameterPosition = false; unsigned int parameterPosition = 0;
bool hasParameterPosition = false;
while (i != formatString.end() && *i != ']' && !std::isalpha(*i)) { while (i != formatString.end() && *i != ']' && !std::isalpha(*i)) {
if (*i == '*') { if (*i == '*') {
if (scan) if (scan)
@ -771,7 +772,7 @@ void CheckIO::wrongPrintfScanfArgumentsError(const Token* tok,
void CheckIO::wrongPrintfScanfPosixParameterPositionError(const Token* tok, const std::string& functionName, void CheckIO::wrongPrintfScanfPosixParameterPositionError(const Token* tok, const std::string& functionName,
unsigned int index, unsigned int numFunction) unsigned int index, unsigned int numFunction)
{ {
if (!_settings->isEnabled("style")) if (!_settings->isEnabled("warning"))
return; return;
std::ostringstream errmsg; std::ostringstream errmsg;
errmsg << functionName << ": "; errmsg << functionName << ": ";