[clang-tools-extra] r360451 - Removing an unused member variable; NFC.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri May 10 11:29:10 PDT 2019
Author: aaronballman
Date: Fri May 10 11:29:10 2019
New Revision: 360451
URL: http://llvm.org/viewvc/llvm-project?rev=360451&view=rev
Log:
Removing an unused member variable; NFC.
Modified:
clang-tools-extra/trunk/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
Modified: clang-tools-extra/trunk/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp?rev=360451&r1=360450&r2=360451&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp Fri May 10 11:29:10 2019
@@ -23,8 +23,7 @@ namespace modernize {
namespace {
struct UnqualNameVisitor : public RecursiveASTVisitor<UnqualNameVisitor> {
public:
- UnqualNameVisitor(const FunctionDecl &F, const SourceManager &SM)
- : F(F), SM(SM) {}
+ UnqualNameVisitor(const FunctionDecl &F) : F(F) {}
bool Collision = false;
@@ -96,7 +95,6 @@ public:
private:
const FunctionDecl &F;
- const SourceManager &SM;
};
} // namespace
@@ -447,7 +445,7 @@ void UseTrailingReturnTypeCheck::check(c
// name, then we can either not perform a rewrite or explicitely qualify the
// entity. Such entities could be function parameter names, (inherited) class
// members, template parameters, etc.
- UnqualNameVisitor UNV{*F, SM};
+ UnqualNameVisitor UNV{*F};
UNV.TraverseTypeLoc(FTL.getReturnLoc());
if (UNV.Collision) {
diag(F->getLocation(), Message);
More information about the cfe-commits
mailing list