loplugin:constparam in sc part8
Change-Id: I6cf9c5e662b20de9c9698a8c1fab56a09950c522 Reviewed-on: https://gerrit.libreoffice.org/41683 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -420,6 +420,8 @@ bool ConstParams::checkIfCanBeConst(const Stmt* stmt, const ParmVarDecl* parmVar
|
||||
return true;
|
||||
} else if (isa<SwitchStmt>(parent)) {
|
||||
return true;
|
||||
} else if (isa<DoStmt>(parent)) {
|
||||
return true;
|
||||
} else if (isa<CXXDeleteExpr>(parent)) {
|
||||
return false;
|
||||
} else if (isa<VAArgExpr>(parent)) {
|
||||
|
Reference in New Issue
Block a user