Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ccls/files/, dev-util/ccls/
Date: Mon, 31 Oct 2022 15:41:32
Message-Id: 1667230280.09633861186f28e8e2c0dd9b5d3011375c5b4ef6.mattst88@gentoo
1 commit: 09633861186f28e8e2c0dd9b5d3011375c5b4ef6
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 31 15:30:30 2022 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 31 15:31:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09633861
7
8 dev-util/ccls: Drop old versions
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 dev-util/ccls/Manifest | 1 -
13 dev-util/ccls/ccls-0.20210330-r1.ebuild | 51 --------
14 dev-util/ccls/ccls-0.20210330.ebuild | 46 -------
15 .../ccls/files/ccls-0.20210330-llvm-cmake.patch | 18 ---
16 dev-util/ccls/files/ccls-0.20210330-llvm14.patch | 139 ---------------------
17 5 files changed, 255 deletions(-)
18
19 diff --git a/dev-util/ccls/Manifest b/dev-util/ccls/Manifest
20 index c8afbf5f5510..ea82616a5736 100644
21 --- a/dev-util/ccls/Manifest
22 +++ b/dev-util/ccls/Manifest
23 @@ -1,2 +1 @@
24 -DIST ccls-0.20210330.tar.gz 160487 BLAKE2B f87539a5e726a8742552d811d741c379d62c146bed835c7fa8d32ab5eb1f609513f80051faf07bbb8e346f176c02ab3e54b3446d5e28dae744468f2209a9d037 SHA512 dd78c040c2a51d6b47f8dd2d8bdc0661111f26b9233ffeb41216254b1b0ad0f634190784e6b8c2d7b36475c13020356342d83a9f80047d7da75ce21ca8885b16
25 DIST ccls-0.20220729.tar.gz 160861 BLAKE2B db096f0f1e1d56967086e2711af63f4882e77128236b3d1af3cc107a3b320aa29bcacd4b21769904727261b5608bb2c8409dbb0f3b0d9b0907a94f3bb7c966c8 SHA512 63cb4eace1700118f9c8c4d2f4be40aac948f9c658485c8e3f49dcc863ce7bdd8b6de810b95ec8f46c943b65c8aa5fa643b110a6b981a2e43f57569d897d36c1
26
27 diff --git a/dev-util/ccls/ccls-0.20210330-r1.ebuild b/dev-util/ccls/ccls-0.20210330-r1.ebuild
28 deleted file mode 100644
29 index f2069853b3f4..000000000000
30 --- a/dev-util/ccls/ccls-0.20210330-r1.ebuild
31 +++ /dev/null
32 @@ -1,51 +0,0 @@
33 -# Copyright 2020-2022 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -EGIT_REPO_URI="https://github.com/MaskRay/${PN}"
39 -
40 -if [[ ${PV} = 9999* ]]; then
41 - GIT_ECLASS="git-r3"
42 - LLVM_MAX_SLOT=9999
43 -else
44 - LLVM_MAX_SLOT=14
45 -fi
46 -
47 -inherit cmake llvm ${GIT_ECLASS}
48 -
49 -DESCRIPTION="C/C++/ObjC language server"
50 -HOMEPAGE="https://github.com/MaskRay/ccls"
51 -
52 -if [[ ${PV} == *9999 ]] ; then
53 - SRC_URI=""
54 -else
55 - SRC_URI="https://github.com/MaskRay/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
56 - KEYWORDS="~amd64"
57 -fi
58 -
59 -LICENSE="Apache-2.0"
60 -SLOT="0"
61 -IUSE=""
62 -
63 -# We only depend on Clang because of a quirk in how dependencies work
64 -# See comment in llvm.eclass docs
65 -DEPEND="
66 - dev-libs/rapidjson
67 - <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):=
68 -"
69 -RDEPEND="${DEPEND}"
70 -
71 -PATCHES=(
72 - "${FILESDIR}"/${P}-llvm-cmake.patch
73 - "${FILESDIR}"/${P}-llvm14.patch
74 -)
75 -
76 -src_configure() {
77 - local mycmakeargs=(
78 - -DCCLS_VERSION=${PV}
79 - -DUSE_SYSTEM_RAPIDJSON=ON
80 - -DCLANG_LINK_CLANG_DYLIB=1
81 - )
82 - cmake_src_configure
83 -}
84
85 diff --git a/dev-util/ccls/ccls-0.20210330.ebuild b/dev-util/ccls/ccls-0.20210330.ebuild
86 deleted file mode 100644
87 index 9b48ac669633..000000000000
88 --- a/dev-util/ccls/ccls-0.20210330.ebuild
89 +++ /dev/null
90 @@ -1,46 +0,0 @@
91 -# Copyright 2020-2022 Gentoo Authors
92 -# Distributed under the terms of the GNU General Public License v2
93 -
94 -EAPI=7
95 -
96 -EGIT_REPO_URI="https://github.com/MaskRay/${PN}"
97 -
98 -if [[ ${PV} = 9999* ]]; then
99 - GIT_ECLASS="git-r3"
100 -fi
101 -
102 -inherit cmake ${GIT_ECLASS}
103 -
104 -DESCRIPTION="C/C++/ObjC language server"
105 -HOMEPAGE="https://github.com/MaskRay/ccls"
106 -
107 -if [[ ${PV} == *9999 ]] ; then
108 - SRC_URI=""
109 -else
110 - SRC_URI="https://github.com/MaskRay/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
111 - KEYWORDS="~amd64"
112 -fi
113 -
114 -LICENSE="Apache-2.0"
115 -SLOT="0"
116 -IUSE=""
117 -
118 -DEPEND="
119 - dev-libs/rapidjson
120 - sys-devel/clang:=
121 - sys-devel/llvm:=
122 -"
123 -RDEPEND="${DEPEND}"
124 -
125 -PATCHES=(
126 - "${FILESDIR}"/${P}-llvm-cmake.patch
127 -)
128 -
129 -src_configure() {
130 - local mycmakeargs=(
131 - -DCCLS_VERSION=${PV}
132 - -DUSE_SYSTEM_RAPIDJSON=ON
133 - -DCLANG_LINK_CLANG_DYLIB=1
134 - )
135 - cmake_src_configure
136 -}
137
138 diff --git a/dev-util/ccls/files/ccls-0.20210330-llvm-cmake.patch b/dev-util/ccls/files/ccls-0.20210330-llvm-cmake.patch
139 deleted file mode 100644
140 index 8d8db4483db5..000000000000
141 --- a/dev-util/ccls/files/ccls-0.20210330-llvm-cmake.patch
142 +++ /dev/null
143 @@ -1,18 +0,0 @@
144 -https://github.com/MaskRay/ccls/commit/dce86b1362acbabb8f997869fdaa27adc67f9a55.patch
145 -https://bugs.gentoo.org/835916
146 -
147 -From: Fangrui Song <i@×××××××.me>
148 -Date: Wed, 15 Dec 2021 10:13:29 -0800
149 -Subject: [PATCH] cmake: Add LANGUAGE C to fix find_package(Clang REQUIRED)
150 - error
151 -
152 ---- a/CMakeLists.txt
153 -+++ b/CMakeLists.txt
154 -@@ -1,5 +1,5 @@
155 - cmake_minimum_required(VERSION 3.8)
156 --project(ccls LANGUAGES CXX)
157 -+project(ccls LANGUAGES CXX C)
158 -
159 - option(USE_SYSTEM_RAPIDJSON "Use system RapidJSON instead of the git submodule if exists" ON)
160 -
161 -
162
163 diff --git a/dev-util/ccls/files/ccls-0.20210330-llvm14.patch b/dev-util/ccls/files/ccls-0.20210330-llvm14.patch
164 deleted file mode 100644
165 index 79bf0f124422..000000000000
166 --- a/dev-util/ccls/files/ccls-0.20210330-llvm14.patch
167 +++ /dev/null
168 @@ -1,139 +0,0 @@
169 -https://github.com/MaskRay/ccls/commit/3ce756e39ae48204f016a58684652ad62b4dd9f9.patch
170 -https://github.com/MaskRay/ccls/commit/8422f0a522b6fbcb4412a8ec73d80b4acbc7e00f.patch
171 -https://github.com/MaskRay/ccls/commit/790daca4b2d9d5873623fee86283cd61212df674.patch
172 -
173 -From: Fangrui Song <i@×××××××.me>
174 -Date: Thu, 23 Sep 2021 13:36:01 -0700
175 -Subject: [PATCH] Adaopt llvmorg-14-init-3863-g601102d282d5: refactor
176 - clang::isIdentifierBody
177 -
178 ----
179 - src/clang_tu.hh | 4 ++++
180 - src/indexer.cc | 6 +++---
181 - src/working_files.cc | 9 ++++++---
182 - 3 files changed, 13 insertions(+), 6 deletions(-)
183 -
184 -diff --git a/src/clang_tu.hh b/src/clang_tu.hh
185 -index b37950926..7dbfc4a88 100644
186 ---- a/src/clang_tu.hh
187 -+++ b/src/clang_tu.hh
188 -@@ -17,6 +17,10 @@ namespace vfs = clang::vfs;
189 - }
190 - #endif
191 -
192 -+#if LLVM_VERSION_MAJOR < 14 // llvmorg-14-init-3863-g601102d282d5
193 -+#define isAsciiIdentifierContinue isIdentifierBody
194 -+#endif
195 -+
196 - namespace ccls {
197 - std::string pathFromFileEntry(const clang::FileEntry &file);
198 -
199 -diff --git a/src/indexer.cc b/src/indexer.cc
200 -index 89d78959e..644c0ccbb 100644
201 ---- a/src/indexer.cc
202 -+++ b/src/indexer.cc
203 -@@ -527,8 +527,8 @@ class IndexDataConsumer : public index::IndexDataConsumer {
204 - auto i = name.find(short_name);
205 - if (short_name.size())
206 - while (i != std::string::npos &&
207 -- ((i && isIdentifierBody(name[i - 1])) ||
208 -- isIdentifierBody(name[i + short_name.size()])))
209 -+ ((i && isAsciiIdentifierContinue(name[i - 1])) ||
210 -+ isAsciiIdentifierContinue(name[i + short_name.size()])))
211 - i = name.find(short_name, i + short_name.size());
212 - if (i == std::string::npos) {
213 - // e.g. operator type-parameter-1
214 -@@ -552,7 +552,7 @@ class IndexDataConsumer : public index::IndexDataConsumer {
215 - paren++;
216 - else if (name[i - 1] == '(')
217 - paren--;
218 -- else if (!(paren > 0 || isIdentifierBody(name[i - 1]) ||
219 -+ else if (!(paren > 0 || isAsciiIdentifierContinue(name[i - 1]) ||
220 - name[i - 1] == ':'))
221 - break;
222 - }
223 -diff --git a/src/working_files.cc b/src/working_files.cc
224 -index f80f21053..4904388be 100644
225 ---- a/src/working_files.cc
226 -+++ b/src/working_files.cc
227 -@@ -342,7 +342,10 @@ std::optional<int> WorkingFile::getIndexPosFromBufferPos(int line, int *column,
228 - Position WorkingFile::getCompletionPosition(Position pos, std::string *filter) const {
229 - int start = getOffsetForPosition(pos, buffer_content);
230 - int i = start;
231 -- while (i > 0 && isIdentifierBody(buffer_content[i - 1]))
232 -+#if LLVM_VERSION_MAJOR < 14 // llvmorg-14-init-3863-g601102d282d5
233 -+#define isAsciiIdentifierContinue isIdentifierBody
234 -+#endif
235 -+ while (i > 0 && isAsciiIdentifierContinue(buffer_content[i - 1]))
236 - --i;
237 - *filter = buffer_content.substr(i, start - i);
238 - return getPositionForOffset(buffer_content, i);
239 -@@ -455,10 +458,10 @@ std::string_view lexIdentifierAroundPos(Position position,
240 - c = content[start - 1];
241 - if (c == ':' && start > 1 && content[start - 2] == ':')
242 - start--;
243 -- else if (!isIdentifierBody(c))
244 -+ else if (!isAsciiIdentifierContinue(c))
245 - break;
246 - }
247 -- for (; end < content.size() && isIdentifierBody(content[end]); end++)
248 -+ for (; end < content.size() && isAsciiIdentifierContinue(content[end]); end++)
249 - ;
250 -
251 - return content.substr(start, end - start);
252 -
253 -
254 -From: Fangrui Song <i@×××××××.me>
255 -Date: Sun, 9 Jan 2022 12:25:07 -0800
256 -Subject: [PATCH] Adapt llvmorg-14-init-13600-g92417eaf3329: braced constructor
257 - call
258 -
259 ----
260 - src/messages/textDocument_signatureHelp.cc | 8 ++++++++
261 - 1 file changed, 8 insertions(+)
262 -
263 -diff --git a/src/messages/textDocument_signatureHelp.cc b/src/messages/textDocument_signatureHelp.cc
264 -index 8e8a7277..4192272a 100644
265 ---- a/src/messages/textDocument_signatureHelp.cc
266 -+++ b/src/messages/textDocument_signatureHelp.cc
267 -@@ -80,6 +80,10 @@ class SignatureHelpConsumer : public CodeCompleteConsumer {
268 - #if LLVM_VERSION_MAJOR >= 8
269 - ,
270 - SourceLocation openParLoc
271 -+#endif
272 -+#if LLVM_VERSION_MAJOR >= 14
273 -+ ,
274 -+ bool braced
275 - #endif
276 - ) override {
277 - ls_sighelp.activeParameter = (int)currentArg;
278 -@@ -93,7 +97,11 @@ class SignatureHelpConsumer : public CodeCompleteConsumer {
279 - cand = OverloadCandidate(pattern);
280 -
281 - const auto *ccs =
282 -+#if LLVM_VERSION_MAJOR >= 14
283 -+ cand.CreateSignatureString(currentArg, s, *alloc, cCTUInfo, true, braced);
284 -+#else
285 - cand.CreateSignatureString(currentArg, s, *alloc, cCTUInfo, true);
286 -+#endif
287 -
288 - const char *ret_type = nullptr;
289 - SignatureInformation &ls_sig = ls_sighelp.signatures.emplace_back();
290 -
291 -
292 -From: Fangrui Song <i@×××××××.me>
293 -Date: Sun, 30 Jan 2022 11:17:32 -0800
294 -Subject: [PATCH] query: include llvm/ADT/STLExtras.h
295 -
296 -The header is no longer transitively included in 2022-01.
297 ---- a/src/query.cc
298 -+++ b/src/query.cc
299 -@@ -9,6 +9,8 @@
300 -
301 - #include <rapidjson/document.h>
302 -
303 -+#include <llvm/ADT/STLExtras.h>
304 -+
305 - #include <assert.h>
306 - #include <functional>
307 - #include <limits.h>