fix loplugin unusedmethods

VisitCXXDeductionGuide is not part of our baseline clang

Change-Id: I354a992456949975384d8ae1a81a07de9e886061
This commit is contained in:
Noel Grandin
2017-11-28 10:31:54 +02:00
parent 6aa1df5a62
commit 5eec6db4ad
-9
View File
@@ -118,7 +118,6 @@ public:
bool TraverseFunctionDecl( FunctionDecl* );
bool TraverseCXXMethodDecl( CXXMethodDecl* );
bool TraverseCXXConversionDecl( CXXConversionDecl* );
bool TraverseCXXDeductionGuideDecl( CXXDeductionGuideDecl* );
private:
void logCallToRootMethods(const FunctionDecl* functionDecl, std::set<MyFuncInfo>& funcSet);
MyFuncInfo niceName(const FunctionDecl* functionDecl);
@@ -388,14 +387,6 @@ bool UnusedMethods::TraverseCXXConversionDecl(CXXConversionDecl* f)
currentFunctionDecl = copy;
return ret;
}
bool UnusedMethods::TraverseCXXDeductionGuideDecl(CXXDeductionGuideDecl* f)
{
auto copy = currentFunctionDecl;
currentFunctionDecl = f;
bool ret = RecursiveASTVisitor::TraverseCXXDeductionGuideDecl(f);
currentFunctionDecl = copy;
return ret;
}
loplugin::Plugin::Registration< UnusedMethods > X("unusedmethods", false);