summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/constparams.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-29 11:00:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-29 14:15:16 +0200
commitbcc372d15e731ab9ff660072a6dc860708e61a93 (patch)
tree5cacaad326bc858f236e98cf53e717435e168b12 /compilerplugins/clang/constparams.cxx
parent3878c4725f0f5ce849f8a0482e3efba361599a42 (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/clang/constparams.cxx')
-rw-r--r--compilerplugins/clang/constparams.cxx2
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)) {