Clean away temporarily added using declarations

Change-Id: I26734c13515394162d88351a1cbe2b20abdac865
This commit is contained in:
Stephan Bergmann
2017-11-07 11:50:47 +01:00
parent 07b8711526
commit b35bb38f18
86 changed files with 160 additions and 106 deletions

View File

@@ -132,7 +132,8 @@ class UnusedFields:
public RecursiveASTVisitor<UnusedFields>, public loplugin::Plugin
{
public:
explicit UnusedFields(InstantiationData const & data): Plugin(data) {}
explicit UnusedFields(loplugin::InstantiationData const & data):
Plugin(data) {}
virtual void run() override;
@@ -237,7 +238,7 @@ MyFieldInfo UnusedFields::niceName(const FieldDecl* fieldDecl)
SourceLocation expansionLoc = compiler.getSourceManager().getExpansionLoc( fieldDecl->getLocation() );
StringRef name = compiler.getSourceManager().getFilename(expansionLoc);
aInfo.sourceLocation = std::string(name.substr(strlen(SRCDIR)+1)) + ":" + std::to_string(compiler.getSourceManager().getSpellingLineNumber(expansionLoc));
normalizeDotDotInFilePath(aInfo.sourceLocation);
loplugin::normalizeDotDotInFilePath(aInfo.sourceLocation);
switch (fieldDecl->getAccess())
{