summaryrefslogtreecommitdiffstats
path: root/compilerplugins/clang/plugin.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-08-14 14:27:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-08-14 14:27:48 +0200
commitd206ddf6c5e253f8fc94c27fff43c42a9f3b2232 (patch)
treede33259a56c0d60069886ca7dab4d7e258f7ed01 /compilerplugins/clang/plugin.hxx
parentloplugin:returnconstant in ScXMLChartExportWrapper (diff)
downloadcore-d206ddf6c5e253f8fc94c27fff43c42a9f3b2232.tar.gz
core-d206ddf6c5e253f8fc94c27fff43c42a9f3b2232.zip
Adapt new code to getLocStart rename
Change-Id: I96cabd351e06de6b3e728c456bd05156572822c9
Diffstat (limited to 'compilerplugins/clang/plugin.hxx')
-rw-r--r--compilerplugins/clang/plugin.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/plugin.hxx b/compilerplugins/clang/plugin.hxx
index d9ed85db0f85..0157540ee680 100644
--- a/compilerplugins/clang/plugin.hxx
+++ b/compilerplugins/clang/plugin.hxx
@@ -109,7 +109,7 @@ public:
explicit FilteringPlugin( const InstantiationData& data ) : Plugin(data) {}
bool TraverseNamespaceDecl(NamespaceDecl * decl) {
- if (ignoreLocation(decl->getLocStart()))
+ if (ignoreLocation(compat::getBeginLoc(decl)))
return true;
return RecursiveASTVisitor<Derived>::TraverseNamespaceDecl(decl);
}
@@ -247,7 +247,7 @@ public:
explicit FilteringRewritePlugin( const InstantiationData& data ) : RewritePlugin(data) {}
bool TraverseNamespaceDecl(NamespaceDecl * decl) {
- if (ignoreLocation(decl->getLocStart()))
+ if (ignoreLocation(compat::getBeginLoc(decl)))
return true;
return RecursiveASTVisitor<Derived>::TraverseNamespaceDecl(decl);
}