summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/inlinefields.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/inlinefields.cxx')
-rw-r--r--compilerplugins/clang/inlinefields.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/compilerplugins/clang/inlinefields.cxx b/compilerplugins/clang/inlinefields.cxx
index 42551dc61660..490d40818683 100644
--- a/compilerplugins/clang/inlinefields.cxx
+++ b/compilerplugins/clang/inlinefields.cxx
@@ -65,7 +65,8 @@ class InlineFields:
public RecursiveASTVisitor<InlineFields>, public loplugin::Plugin
{
public:
- explicit InlineFields(InstantiationData const & data): Plugin(data) {}
+ explicit InlineFields(loplugin::InstantiationData const & data):
+ Plugin(data) {}
virtual void run() override
{
@@ -120,7 +121,7 @@ MyFieldInfo InlineFields::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);
return aInfo;
}