Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ccls for openSUSE:Factory checked in at 2026-09-04 12:43:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ccls (Old) and /work/SRC/openSUSE:Factory/.ccls.new.1265 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ccls" Fri Sep 4 12:43:23 2026 rev:27 rq:1375697 version:0.20250815.1 Changes: -------- --- /work/SRC/openSUSE:Factory/ccls/ccls.changes 2026-04-28 12:00:06.926848445 +0200 +++ /work/SRC/openSUSE:Factory/.ccls.new.1265/ccls.changes 2026-09-04 12:43:25.629941756 +0200 @@ -1,0 +2,5 @@ +Thu Sep 3 21:30:45 UTC 2026 - Aaron Puchert <[email protected]> + +- Add fix-llvm23-build.patch to fix build with LLVM 23. + +------------------------------------------------------------------- New: ---- fix-llvm23-build.patch ----------(New B)---------- New: - Add fix-llvm23-build.patch to fix build with LLVM 23. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ccls.spec ++++++ --- /var/tmp/diff_new_pack.yTNiUi/_old 2026-09-04 12:43:26.308965602 +0200 +++ /var/tmp/diff_new_pack.yTNiUi/_new 2026-09-04 12:43:26.309965637 +0200 @@ -27,6 +27,7 @@ URL: https://github.com/MaskRay/ccls Source0: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz Patch1: fix-llvm22-build.patch +Patch2: fix-llvm23-build.patch BuildRequires: clang-devel >= 10 BuildRequires: cmake >= 3.8 BuildRequires: llvm-devel >= 10 ++++++ fix-llvm23-build.patch ++++++ >From e74892376d8a280c5ee99c19cb2349e6ca834bad Mon Sep 17 00:00:00 2001 From: Fangrui Song <[email protected]> Date: Mon, 27 Apr 2026 23:51:13 -0700 Subject: [PATCH] Adapt llvm 23 changes USRGeneration is moved from clangIndex to a new clangUnifiedSymbolResolution library by llvmorg-22-init-27296-g65cb738ff419. PrintingPolicy::AnonymousTagLocations is replaced with AnonymousTagNameStyle (an AnonymousTagMode enum bitfield) by llvmorg-22-init-25026-gf5f8435605ba. --- CMakeLists.txt | 3 +++ src/indexer.cc | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index af9bcc1a3..67be5f603 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,6 +89,9 @@ else() clangDriver clangBasic ) + if(LLVM_VERSION_MAJOR GREATER_EQUAL 23) # llvmorg-22-init-27296-g65cb738ff419 + target_link_libraries(ccls PRIVATE clangUnifiedSymbolResolution) + endif() endif() if(LLVM_LINK_LLVM_DYLIB) diff --git a/src/indexer.cc b/src/indexer.cc index bd4da48db..b22ef9c58 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -15,7 +15,11 @@ #include <clang/Frontend/MultiplexConsumer.h> #include <clang/Index/IndexDataConsumer.h> #include <clang/Index/IndexingAction.h> +#if LLVM_VERSION_MAJOR >= 23 // llvmorg-22-init-27296-g65cb738ff419 +#include <clang/UnifiedSymbolResolution/USRGeneration.h> +#else #include <clang/Index/USRGeneration.h> +#endif #include <clang/Lex/PreprocessorOptions.h> #include <llvm/ADT/DenseSet.h> #include <llvm/Support/CrashRecoveryContext.h> @@ -506,7 +510,11 @@ class IndexDataConsumer : public index::IndexDataConsumer { PrintingPolicy getDefaultPolicy() const { PrintingPolicy pp(ctx->getLangOpts()); +#if LLVM_VERSION_MAJOR >= 23 // llvmorg-22-init-25026-gf5f8435605ba + pp.AnonymousTagNameStyle = static_cast<unsigned>(PrintingPolicy::AnonymousTagMode::Plain); +#else pp.AnonymousTagLocations = false; +#endif pp.TerseOutput = true; pp.PolishForDeclaration = true; pp.ConstantsAsWritten = true;
