On 2024-09-03, Christer Solskogen <christer.solsko...@gmail.com> wrote: > On Tue, Sep 3, 2024 at 9:29 AM <meisne...@mailbox.org> wrote: > >> I tried to install 'clang-tools-extra' package on a fresh system, >> but unfortunately it does not have 'clang-format' program. Instead, >> it installs 'llvm-16.0.6p24' package, which has 'clang-format-16'. >> Perhaps I miss something here? >> >> Regarding the script, do you mean to make changes in ports/devel/llvm, >> then prepare diff and send to the tech mailing list? >> > > Ah, that might be because I run current, not stable. The package > clang-tools-extra-16.0.6 contains /usr/local/bin/clang-format. > Do you really need llvm-17?
If you do need 17 (or some other specific version), add /usr/local/llvm17/bin to PATH, there is a clang-format binary there. ("pkg_add pkglocatedb" for the very useful pkglocate command). -- Please keep replies on the mailing list.