compilerplugins/clang/dynexcspec.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit f4fac7f3411c4afad4a6d33424bf8007822e1ee6 Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Jan 27 11:50:07 2017 +0100 getExceptionSpecSourceRange is new in Clang 5 Change-Id: Ifa9223fadeeb1fde54afc99874a1b3d855073dce diff --git a/compilerplugins/clang/dynexcspec.cxx b/compilerplugins/clang/dynexcspec.cxx index b5db5df..6c7ff52 100644 --- a/compilerplugins/clang/dynexcspec.cxx +++ b/compilerplugins/clang/dynexcspec.cxx @@ -76,7 +76,10 @@ public: } } bool dtor = isa<CXXDestructorDecl>(decl); - auto source = decl->getExceptionSpecSourceRange(); + SourceRange source; +#if CLANG_VERSION >= 50000 + source = decl->getExceptionSpecSourceRange(); +#endif if (rewriter != nullptr && source.isValid()) { if (dtor) { if (replaceText(source, "noexcept(false)")) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits