From 0d2acd55ef024f911ace7c0facea379e44ce8f0f Mon Sep 17 00:00:00 2001 From: Wadim Mueller Date: Thu, 29 Jun 2023 20:53:38 +0200 Subject: [PATCH] [SEMA MANAGER] fix incorrect logic for CINDEX_VERSION version check if CINDEX_VERSION_MAJOR is increased to > 0 or CINDEX_VERSION_MAJOR is still 0 but CINDEX_VERSION_MINOR > 63 the new API has to be used Signed-off-by: Wadim Mueller --- src/sema_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sema_manager.cc b/src/sema_manager.cc index fb4510c6..f5228854 100644 --- a/src/sema_manager.cc +++ b/src/sema_manager.cc @@ -405,7 +405,7 @@ void buildPreamble(Session &session, CompilerInvocation &ci, CclsPreambleCallbacks pc; if (auto newPreamble = PrecompiledPreamble::Build(ci, buf.get(), bounds, *de, fs, session.pch, true, - #if CINDEX_VERSION_MAJOR >= 0 && CINDEX_VERSION_MINOR > 63 + #if CINDEX_VERSION_MAJOR > 0 || CINDEX_VERSION_MINOR > 63 "", #endif pc)) {