summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2019-05-10 18:29:10 +0000
committerAaron Ballman <aaron@aaronballman.com>2019-05-10 18:29:10 +0000
commitcc55804be0506b2930e32778f40a49d2d9a540f2 (patch)
tree28f9850e2c4c7a7294e3a0ed025d38d00a28d7fd /clang-tools-extra/clang-tidy
parentb75e7eae17a56a42f6e23f0f11d331ef260a51fe (diff)
downloadbcm5719-llvm-cc55804be0506b2930e32778f40a49d2d9a540f2.tar.gz
bcm5719-llvm-cc55804be0506b2930e32778f40a49d2d9a540f2.zip
Removing an unused member variable; NFC.
llvm-svn: 360451
Diffstat (limited to 'clang-tools-extra/clang-tidy')
-rw-r--r--clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp b/clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
index 06f49415e6a..507170e26ec 100644
--- a/clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
@@ -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(const MatchFinder::MatchResult &Result) {
// 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);
OpenPOWER on IntegriCloud