On 2026-01-17 16:56, Takashi Yano via Cygwin-apps wrote:
clangd understands the C++ code and adds smart features to the editor:
code completion, compile errors, go-to-definition and more. clangd is
a language server that can work with many editors via plugins.
Why can't you just add CLANG_PATCHES to or append them directly in PATCH_URI,
as we do with other patch sources like Debian, Fedora, Gentoo, OpenSuSE, ...?
Cygport patching iterates thru -p1..5 and other options to take care of
subdirectories for you - try it!
If you have a necessity to use src_patch_hook, then rather than generate
CLANG_PATCHES values using eval, everywhere else in Cygport uses indirection
${!PATCH_PROJ} with PATCH_PROJ=CLANG_PATCHES; or avoid implementing an unused
unnecessary future expansion design feature entirely and just use the variable
directly in `for list in $CLANG_PATCHES`, only getting fancier when you really
need to?
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut
-- Antoine de Saint-Exupéry