[PATCH] D17926: [clang-tidy] Don't delete unused parameter in class override method in anonymous namespace.
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 7 06:14:49 PST 2016
alexfh added inline comments.
================
Comment at: clang-tidy/misc/UnusedParametersCheck.cpp:20
@@ +19,3 @@
+namespace {
+bool isOverrideMethod(const FunctionDecl *Function) {
+ if (const auto *MD = dyn_cast<CXXMethodDecl>(Function))
----------------
There's a matcher for this: `isOverride`.
Repository:
rL LLVM
http://reviews.llvm.org/D17926
More information about the cfe-commits
mailing list