[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
Thu Mar 31 15:36:35 PDT 2016
alexfh added inline comments.
================
Comment at: clang-tidy/misc/UnusedParametersCheck.cpp:80
@@ -78,2 +79,3 @@
!Result.SourceManager->isInMainFile(Function->getLocation()) ||
- UsedByRef()) {
+ !ast_matchers::match(DeclRefExpr, *Result.Context).empty()||
+ isOverrideMethod(Function)) {
----------------
nit: Please update formatting.
http://reviews.llvm.org/D17926
More information about the cfe-commits
mailing list