[Libreoffice-commits] core.git: compilerplugins/clang
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Feb 15 11:20:07 UTC 2019
compilerplugins/clang/indentation.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 177747c44557489760cc00473daecacd99995427
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Feb 15 12:13:18 2019 +0100
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Fri Feb 15 12:19:34 2019 +0100
SourceManager::getExpansionRange already returns CharSourceRange since Clang 7
Change-Id: Ic7c6c648c71203116ca074bd7392a48ff850cd51
Reviewed-on: https://gerrit.libreoffice.org/67864
Reviewed-by: Tor Lillqvist <tml at collabora.com>
Tested-by: Tor Lillqvist <tml at collabora.com>
diff --git a/compilerplugins/clang/indentation.cxx b/compilerplugins/clang/indentation.cxx
index 6b4e39c9d483..04a9be6677d0 100644
--- a/compilerplugins/clang/indentation.cxx
+++ b/compilerplugins/clang/indentation.cxx
@@ -114,7 +114,7 @@ bool Indentation::VisitCompoundStmt(CompoundStmt const* compoundStmt)
// similar thing in forms/
if (macroName == "DECL_IFACE_PROP_IMPL" || macroName == "DECL_BOOL_PROP_IMPL")
continue;
-#if CLANG_VERSION >= 80000
+#if CLANG_VERSION >= 70000
stmtLoc = SM.getExpansionRange(stmtLoc).getBegin();
#else
stmtLoc = SM.getExpansionRange(stmtLoc).first;
More information about the Libreoffice-commits
mailing list