astyle formatting, use isEnabled("warning") instead of isEnabled("style")
This commit is contained in:
parent
1409461e4f
commit
9ff204f8bc
|
@ -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 << ": ";
|
||||||
|
|
Loading…
Reference in New Issue