I'm trying to figure out how to install the stand alone Clang-Format tool.
I've downloaded the pre build binaries for Clang from the official download page for my OS (Fedora 27).
However I failed to figure out how to run the tool.
The documentation above says clang-format
is located in clang/tools/clang-format
however such path doesn't exists in the downloaded files.
I searched the entire downloaded directory for 'format' and found 'clang-format' executable in the /bin/ directory.
However when I try to run it from the terminal like so:
./clang-format
The terminal says:
bash: ./clang-format: No such file or directory
(I've changed the file permissions to allow execution)
I've also looked into building clang-format
from source, but I failed to find instructions how to build clang-format
alone without any other clang additions.
Help would be greatly appreciated. Thank you!