astyle formatting
This commit is contained in:
parent
ea574b0a38
commit
b660cf89ef
|
@ -207,9 +207,7 @@ void MainWindow::HandleCLIParams(const QStringList ¶ms)
|
|||
checkedDir = params[ind + 1];
|
||||
|
||||
LoadResults(logFile, checkedDir);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
LoadResults(logFile);
|
||||
}
|
||||
} else
|
||||
|
|
|
@ -278,12 +278,11 @@ private:
|
|||
CheckUninitVar *checkUninitVar = dynamic_cast<CheckUninitVar *>(c->owner);
|
||||
if (checkUninitVar) {
|
||||
if (c->strncpy_ || c->memset_nonzero) {
|
||||
if(!Token::Match(c->var->typeStartToken(), "char|wchar_t")) {
|
||||
if (!Token::Match(c->var->typeStartToken(), "char|wchar_t")) {
|
||||
continue;
|
||||
}
|
||||
checkUninitVar->uninitstringError(tok, c->var->name(), c->strncpy_);
|
||||
}
|
||||
else if (c->var->isPointer() && !c->var->isArray() && c->alloc)
|
||||
} else if (c->var->isPointer() && !c->var->isArray() && c->alloc)
|
||||
checkUninitVar->uninitdataError(tok, c->var->name());
|
||||
else
|
||||
checkUninitVar->uninitvarError(tok, c->var->name());
|
||||
|
|
Loading…
Reference in New Issue