If you have installed clang-format
via brew
, the clang-format
has been downloaded under
(Just use my MacOS12.3.1+XCode13.4+clang-format@5.0 with upgrade from macOS10.12.6+Xcode8+clang-format@5.0 as an example)
/usr/local/Cellar/clang-format@5/
with it's executable file clang-format
under
/usr/local/Cellar/clang-format@5/5.0.2/bin/clang-format
with it's configuration file clang-format.py
under
/usr/local/Cellar/clang-format@5/5.0.2/share/clang/clang-format.py
ALso,
the clang-format@5.0 will create soft link executable file clang-format
under
/usr/local/bin/clang-format -> ../Cellar/clang-format@5/5.0.2/bin/clang-format
(that's why while I check where the clang-format is no matter using where clang-format
or which clang-format
or even whereis clang-format
, that always shows /usr/local/bin/clang-format
.)
(If you want to check where soft link /usr/local/bin/clang-format
linked to?
Just use the command to check cd /usr/local/bin/ && pwd && ls -al | grep "clang-format"
, liking mine showing:)
/usr/local/bin/clang-format -> ../Cellar/clang-format@5/5.0.2/bin/clang-format
and the clang-format@5.0 soft link create configuration file clang-format.py
under
/usr/local/share/clang/clang-format.py
the upstairs soft link linked to
/usr/local/Cellar/clang-format@5/5.0.2/share/clang/clang-format.py
Others,
somebody's download clang-format@3.8 maybe under
/usr/local/Cellar/clang-format
with executable file clang-format
under
/usr/local/Cellar/clang-format/2019-01-18/bin/clang-format
with configuration file clang-format.py
under
/usr/local/Cellar/clang-format/2019-01-18/share/clang/clang-format.py
withe the upstairs soft link clang-format.py
under
/usr/share/clang/clang-format-3.8/clang-format.py