Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79593 - [clang14] Keep clang-format

Attached to Project: Arch Linux
Opened by Matt (mattarch) - Wednesday, 06 September 2023, 10:57 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 06 September 2023, 21:28 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Please include/keep clang-format in the clang14 package. It is a very useful program for formatting/standardizing source code.


Additional info:
* package version: clang14-14.0.6


Steps to reproduce:

$ pacman -Ql clang14 | grep -w bin
clang14 /usr/lib/llvm14/bin/
clang14 /usr/lib/llvm14/bin/c-index-test
clang14 /usr/lib/llvm14/bin/clang
clang14 /usr/lib/llvm14/bin/clang++
clang14 /usr/lib/llvm14/bin/clang-14
clang14 /usr/lib/llvm14/bin/clang-check
clang14 /usr/lib/llvm14/bin/clang-cl
clang14 /usr/lib/llvm14/bin/clang-cpp
clang14 /usr/lib/llvm14/bin/clang-extdef-mapping
clang14 /usr/lib/llvm14/bin/clang-offload-bundler
clang14 /usr/lib/llvm14/bin/clang-offload-wrapper
clang14 /usr/lib/llvm14/bin/clang-refactor
clang14 /usr/lib/llvm14/bin/clang-repl
clang14 /usr/lib/llvm14/bin/clang-scan-deps
clang14 /usr/lib/llvm14/bin/diagtool

It would be nice to see `clang-format` in the above list.
This task depends upon

Closed by  Toolybird (Toolybird)
Wednesday, 06 September 2023, 21:28 GMT
Reason for closing:  Won't implement
Additional comments about closing:  See comments
Comment by loqs (loqs) - Wednesday, 06 September 2023, 17:08 GMT
Can you not use clang-format which is provided by the clang package? clang14 is only used in the repositories to build AFL which is no longer maintained [1] and should it be replaced by AFLplusplus [2] then clang14 could then be dropped.

[1] https://github.com/google/AFL
[2] https://github.com/AFLplusplus/AFLplusplus
Comment by Matt (mattarch) - Wednesday, 06 September 2023, 17:28 GMT
For a separate reason involving requiring llvm14 and cmake issues with having both clang/llvm 14+current #include files, I can't co-exist with the current clang and llvm packages (though I may be able to work through this with more effort.)

I was just hoping it was a quick/easy fix to keep `clang-format` with `clang14`. If not, then feel free to close this request.

In the meantime I was able to find a work-around:

1. Install `clang` package.
2. Copy `clang-format` to `~/.local/bin/` and `libclang-cpp.so{,16}` to `~/.local/lib/`.
3. alias clang-format='env LD_LIBRARY_PATH=~/.local/lib ~/.local/bin/clang-format'
4. Uninstall `clang`.

Loading...