diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-11-07 11:50:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-11-07 11:50:47 +0100 |
commit | b35bb38f18fd94aa67af944f76b820d59380b78b (patch) | |
tree | cc2c4aadda7f57abc174adfd3c2260428338d3d0 /compilerplugins/clang/unusedenumconstants.cxx | |
parent | 07b8711526972e120824d0fb913b01b1baf6a4cb (diff) |
Clean away temporarily added using declarations
Change-Id: I26734c13515394162d88351a1cbe2b20abdac865
Diffstat (limited to 'compilerplugins/clang/unusedenumconstants.cxx')
-rw-r--r-- | compilerplugins/clang/unusedenumconstants.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/unusedenumconstants.cxx b/compilerplugins/clang/unusedenumconstants.cxx index 88461c1075fd..69b554064ae9 100644 --- a/compilerplugins/clang/unusedenumconstants.cxx +++ b/compilerplugins/clang/unusedenumconstants.cxx @@ -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; } |