Extra Clang Tools

Shane Ambler FreeBSD at ShaneWare.Biz
Sat Sep 16 06:01:24 UTC 2017

On 16/09/2017 11:59, blubee blubeeme wrote:
> FreeBSD switched to clang as it's compiler some time ago; was clang extra
> tools: http://clang.llvm.org/extra/index.html ever ported over?
> If yes, where is it located?

You will find them included in the llvm ports with EXTRAS enabled

clang-tidy is in llvm 3.8+
clang-include-fixer is in llvm 3.9+
modularize is in llvm 3.8+
pp-trace doesn't appear to exist
clang-rename is in llvm 3.8+
clangd is in llvm-devel (5.0)

Note that llvm ports append the version to the app name - they can be
found in /usr/local/bin and /usr/local/llvm-<VERS>/bin/

Building base WITH_CLANG_EXTRAS offers a different set of extras which
are also in the llvm ports.
As listed in 11-STABLE from /usr/src/usr.bin/clang/Makefile

bugpoint clang-format llc lli llvm-ar llvm-as llvm-bcanalyzer llvm-cov
llvm-cxxdump llvm-cxxfilt llvm-diff llvm-dis llvm-dwarfdump llvm-extract
llvm-link llvm-lto llvm-lto2 llvm-mc llvm-modextract llvm-nm
llvm-pdbdump llvm-profdata llvm-rtdyld llvm-symbolizer llvm-xray opt

FreeBSD - the place to B...Software Developing

Shane Ambler

More information about the freebsd-ports mailing list