diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-29 11:00:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-29 14:15:16 +0200 |
commit | bcc372d15e731ab9ff660072a6dc860708e61a93 (patch) | |
tree | 5cacaad326bc858f236e98cf53e717435e168b12 /compilerplugins | |
parent | 3878c4725f0f5ce849f8a0482e3efba361599a42 (diff) |
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>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/constparams.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compilerplugins/clang/constparams.cxx b/compilerplugins/clang/constparams.cxx index a294e45d58c4..a281d8635900 100644 --- a/compilerplugins/clang/constparams.cxx +++ b/compilerplugins/clang/constparams.cxx @@ -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)) { |