diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-08-14 14:27:48 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-08-14 14:27:48 +0200 |
commit | d206ddf6c5e253f8fc94c27fff43c42a9f3b2232 (patch) | |
tree | de33259a56c0d60069886ca7dab4d7e258f7ed01 /compilerplugins | |
parent | 013c278d564d4e50c81bec7915c33f4edd75c00e (diff) |
Adapt new code to getLocStart rename
Change-Id: I96cabd351e06de6b3e728c456bd05156572822c9
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/plugin.hxx | 4 |
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); } |