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

Chris Sherlock (via logerrit) logerrit at kemper.freedesktop.org
Mon Nov 18 12:57:21 UTC 2019


 compilerplugins/clang/external.cxx               |    2 +-
 compilerplugins/clang/sharedvisitor/analyzer.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 729883cc42c7a7b2f342612ebd6c941e76264d18
Author:     Chris Sherlock <chris.sherlock79 at gmail.com>
AuthorDate: Mon Nov 18 05:08:50 2019 +1100
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Mon Nov 18 13:56:08 2019 +0100

    compilerplugins: fix ambiguous type warnings
    
    Errors were:
    
    /home/chris/repos/libreoffice-latest/compilerplugins/clang/sharedvisitor/analyzer.cxx:80:40: error: reference to 'PointerType' is ambiguous
            if (auto const t = type->getAs<PointerType>())
    
    /home/chris/repos/libreoffice-latest/compilerplugins/clang/external.cxx:61:44: error: reference to 'PointerType' is ambiguous
            else if (auto const t3 = t1->getAs<PointerType>())
    
    Change-Id: Ia5b7add8f2b3160fa3198ed127785bdd61c74796
    Reviewed-on: https://gerrit.libreoffice.org/83030
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/compilerplugins/clang/external.cxx b/compilerplugins/clang/external.cxx
index e4a6b0df6e42..64da725cfff9 100644
--- a/compilerplugins/clang/external.cxx
+++ b/compilerplugins/clang/external.cxx
@@ -58,7 +58,7 @@ bool mentions(QualType type1, QualType type2)
         {
             t1 = t2->getPointeeType();
         }
-        else if (auto const t3 = t1->getAs<PointerType>())
+        else if (auto const t3 = t1->getAs<clang::PointerType>())
         {
             t1 = t3->getPointeeType();
         }
diff --git a/compilerplugins/clang/sharedvisitor/analyzer.cxx b/compilerplugins/clang/sharedvisitor/analyzer.cxx
index 745064647c81..007790facd4d 100644
--- a/compilerplugins/clang/sharedvisitor/analyzer.cxx
+++ b/compilerplugins/clang/sharedvisitor/analyzer.cxx
@@ -77,7 +77,7 @@ private:
     QualType unqualifyPointeeType(QualType type)
     {
         assert(context_ != nullptr);
-        if (auto const t = type->getAs<PointerType>())
+        if (auto const t = type->getAs<clang::PointerType>())
         {
             return context_->getQualifiedType(
                 context_->getPointerType(t->getPointeeType().getUnqualifiedType()),


More information about the Libreoffice-commits mailing list