summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/unusedenumconstants.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-11-07 11:50:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-11-07 11:50:47 +0100
commitb35bb38f18fd94aa67af944f76b820d59380b78b (patch)
treecc2c4aadda7f57abc174adfd3c2260428338d3d0 /compilerplugins/clang/unusedenumconstants.cxx
parent07b8711526972e120824d0fb913b01b1baf6a4cb (diff)
Clean away temporarily added using declarations
Change-Id: I26734c13515394162d88351a1cbe2b20abdac865
Diffstat (limited to 'compilerplugins/clang/unusedenumconstants.cxx')
-rw-r--r--compilerplugins/clang/unusedenumconstants.cxx4
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;
}