fix loplugin unusedmethods
VisitCXXDeductionGuide is not part of our baseline clang Change-Id: I354a992456949975384d8ae1a81a07de9e886061
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user