[clang-tools-extra] r244587 - Fix shadowing of type with variable.
Manuel Klimek via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 05:02:28 PDT 2015
Author: klimek
Date: Tue Aug 11 07:02:28 2015
New Revision: 244587
URL: http://llvm.org/viewvc/llvm-project?rev=244587&view=rev
Log:
Fix shadowing of type with variable.
Modified:
clang-tools-extra/trunk/clang-tidy/IncludeInserter.cpp
Modified: clang-tools-extra/trunk/clang-tidy/IncludeInserter.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/IncludeInserter.cpp?rev=244587&r1=244586&r2=244587&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/IncludeInserter.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/IncludeInserter.cpp Tue Aug 11 07:02:28 2015
@@ -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,
More information about the cfe-commits
mailing list