Fix shadowing of type with variable.
authorManuel Klimek <klimek@google.com>
Tue, 11 Aug 2015 12:02:28 +0000 (12:02 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 11 Aug 2015 12:02:28 +0000 (12:02 +0000)
llvm-svn: 244587

clang-tools-extra/clang-tidy/IncludeInserter.cpp

index 74c181a..4a73c07 100644 (file)
@@ -14,8 +14,8 @@ namespace tidy {
 
 class IncludeInserterCallback : public PPCallbacks {
 public:
-  explicit IncludeInserterCallback(IncludeInserter *IncludeInserter)
-      : IncludeInserter(IncludeInserter) {}
+  explicit IncludeInserterCallback(IncludeInserter *Inserter)
+      : Inserter(Inserter) {}
   // Implements PPCallbacks::InclusionDerective(). Records the names and source
   // locations of the inclusions in the main source file being processed.
   void InclusionDirective(SourceLocation HashLocation,
@@ -25,12 +25,12 @@ public:
                           const FileEntry * /*IncludedFile*/,
                           StringRef /*SearchPath*/, StringRef /*RelativePath*/,
                           const Module * /*ImportedModule*/) override {
-    IncludeInserter->AddInclude(FileNameRef, IsAngled, HashLocation,
+    Inserter->AddInclude(FileNameRef, IsAngled, HashLocation,
                                 FileNameRange.getEnd());
   }
 
 private:
-  IncludeInserter *IncludeInserter;
+  IncludeInserter *Inserter;
 };
 
 IncludeInserter::IncludeInserter(const SourceManager &SourceMgr,