diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-28 10:29:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-28 10:31:54 +0200 |
commit | 5eec6db4addd7cc665222e1a4d05c35b13719847 (patch) | |
tree | 248a422a448c45094d709ab770b27b1eb4af6d04 | |
parent | 6aa1df5a627697e6adaee70adcef2c5b50cfcbf7 (diff) |
fix loplugin unusedmethods
VisitCXXDeductionGuide is not part of our baseline clang
Change-Id: I354a992456949975384d8ae1a81a07de9e886061
-rw-r--r-- | compilerplugins/clang/unusedmethods.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx index e33bb0c01c0a..1a707de5893a 100644 --- a/compilerplugins/clang/unusedmethods.cxx +++ b/compilerplugins/clang/unusedmethods.cxx @@ -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); |