[Libreoffice-commits] core.git: compilerplugins/clang

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Aug 14 12:28:24 UTC 2018


 compilerplugins/clang/plugin.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d206ddf6c5e253f8fc94c27fff43c42a9f3b2232
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Aug 14 14:27:48 2018 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Aug 14 14:27:48 2018 +0200

    Adapt new code to getLocStart rename
    
    Change-Id: I96cabd351e06de6b3e728c456bd05156572822c9

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);
     }


More information about the Libreoffice-commits mailing list