diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-08-31 11:02:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-08-31 11:02:38 +0200 |
commit | 20b11e8dc40a1d467dcc3dd0fa7bedde72a292bf (patch) | |
tree | 5f4177ac64cef66a8352bfaa99208815b5b51731 /compilerplugins | |
parent | a5d4179ecf35b4cd4c7d869e06932340cd24e982 (diff) |
...in which Johnny returns from the fair for real
and finds loplugin:constparams adapted to ObjCIvarRefExpr also
Change-Id: Ib803cd80b01ad7a0fa07bddb77a873bb323a50c0
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 f170552ba6de..0a52ba1c7726 100644 --- a/compilerplugins/clang/constparams.cxx +++ b/compilerplugins/clang/constparams.cxx @@ -493,6 +493,8 @@ bool ConstParams::checkIfCanBeConst(const Stmt* stmt, const ParmVarDecl* parmVar return false; } else if (isa<CXXDependentScopeMemberExpr>(parent)) { return false; + } else if (isa<ObjCIvarRefExpr>(parent)) { + return checkIfCanBeConst(parent, parmVarDecl); } parent->dump(); parmVarDecl->dump(); |