Fix isSalCallFunction further
...after a31267be1b
"Fix isSalCallFunction so it
also works on Windows", so that it actually does work on Windows.
Change-Id: I0218fb41b3e1000e2325967a18dfaafaa95fe415
Reviewed-on: https://gerrit.libreoffice.org/46193
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -206,6 +206,20 @@ inline void addPPCallbacks(
|
||||
#endif
|
||||
}
|
||||
|
||||
inline bool isPointWithin(
|
||||
clang::SourceManager const & SM, clang::SourceLocation Location, clang::SourceLocation Start,
|
||||
clang::SourceLocation End)
|
||||
{
|
||||
#if CLANG_VERSION >= 60000
|
||||
return SM.isPointWithin(Location, Start, End);
|
||||
#else
|
||||
return
|
||||
Location == Start || Location == End
|
||||
|| (SM.isBeforeInTranslationUnit(Start, Location)
|
||||
&& SM.isBeforeInTranslationUnit(Location, End));
|
||||
#endif
|
||||
}
|
||||
|
||||
inline bool isMacroArgExpansion(
|
||||
clang::CompilerInstance& compiler, clang::SourceLocation location,
|
||||
clang::SourceLocation * startLocation)
|
||||
|
Reference in New Issue
Block a user