diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-02-15 12:13:18 +0100 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-02-15 12:19:34 +0100 |
commit | 177747c44557489760cc00473daecacd99995427 (patch) | |
tree | cd18823cc326fcfe811e56b8368d9c2d1dfe5be6 | |
parent | e132e781d8b01684d8ef51f060e90d465a21c677 (diff) |
SourceManager::getExpansionRange already returns CharSourceRange since Clang 7
Change-Id: Ic7c6c648c71203116ca074bd7392a48ff850cd51
Reviewed-on: https://gerrit.libreoffice.org/67864
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r-- | compilerplugins/clang/indentation.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |