diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2019-11-18 05:08:50 +1100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-11-18 13:56:08 +0100 |
commit | 729883cc42c7a7b2f342612ebd6c941e76264d18 (patch) | |
tree | 53545d812077852e5e58dae085020649c0280165 /compilerplugins/clang/external.cxx | |
parent | c0e720bfd209b50ca7dc2082e340f9b6288a6216 (diff) |
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@collabora.com>
Diffstat (limited to 'compilerplugins/clang/external.cxx')
-rw-r--r-- | compilerplugins/clang/external.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |