diff options
Diffstat (limited to 'compilerplugins/clang/overrideparam.cxx')
-rw-r--r-- | compilerplugins/clang/overrideparam.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compilerplugins/clang/overrideparam.cxx b/compilerplugins/clang/overrideparam.cxx index 39400566152b..63620fe206c3 100644 --- a/compilerplugins/clang/overrideparam.cxx +++ b/compilerplugins/clang/overrideparam.cxx @@ -11,7 +11,6 @@ #include <set> #include "plugin.hxx" -#include "compat.hxx" #include "check.hxx" /* @@ -76,7 +75,7 @@ bool OverrideParam::VisitCXXMethodDecl(const CXXMethodDecl * methodDecl) { continue; } int i = 0; - for (const ParmVarDecl *superParmVarDecl : compat::parameters(*superMethodDecl)) { + for (const ParmVarDecl *superParmVarDecl : superMethodDecl->parameters()) { const ParmVarDecl *parmVarDecl = methodDecl->getParamDecl(i); if (parmVarDecl->hasDefaultArg() && !superParmVarDecl->hasDefaultArg()) { report( |