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

@@ -62,7 +62,7 @@ class UnusedEnumConstants:
public RecursiveASTVisitor<UnusedEnumConstants>, public loplugin::Plugin
{
public:
explicit UnusedEnumConstants(InstantiationData const & data): Plugin(data) {}
explicit UnusedEnumConstants(loplugin::InstantiationData const & data): Plugin(data) {}
virtual void run() override
{
@@ -107,7 +107,7 @@ MyFieldInfo UnusedEnumConstants::niceName(const EnumConstantDecl* enumConstantDe
SourceLocation expansionLoc = compiler.getSourceManager().getExpansionLoc( enumConstantDecl->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);
return aInfo;
}