Commit 95ddb377 authored by Committed by Francisco JerezBrowse files
clover: Restore support for LLVM <= 3.9.
The commit 8e430ff8 broke support for LLVM 3.9 and older versions in Clover. This patch restores it and refactors the support using Clover compatibility layer for LLVM. v2: merged #ifdef blocks v3: added support for LLVM 3.6-3.8 v4: add missing #ifdef around <memory> v5: simplify using templates and lambda Signed-off-by: Vedran Miletić <firstname.lastname@example.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98740 Tested-by[v4]: Pierre Moreau <email@example.com> Tested-by: Vinson Lee <firstname.lastname@example.org> Reviewed-by: Francisco Jerez <email@example.com> Reviewed-by: Jan Vesely <firstname.lastname@example.org>