[PATCH] D77363: Use git-clang-format as Arcanist linter
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 3 11:20:24 PDT 2020
mehdi_amini added a comment.
> @mehdi_amini how did you install clang format? It seems like our CMake doesn't actually install a `clang-format-diff` executable, only a `clang-format-diff.py` executable, but it gets packaged on e.g. Debian/Ubuntu as `clang-format-diff`. I didn't think to check what LLVM does vs. what my distribution does when reviewing, but since it differs we may have to look for several different possible installations?
Here is what I have on Ubuntu:
$ dpkg -L clang-format
[...]
/usr/bin/clang-format
/usr/bin/git-clang-format
[...]
/usr/lib/clang-format
/usr/lib/clang-format/clang-format-diff.py
/usr/lib/clang-format/clang-format.el
/usr/lib/clang-format/clang-format.py
Note that there isn't `clang-format-diff` and the `.py` is not in an executable path.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77363/new/
https://reviews.llvm.org/D77363
More information about the llvm-commits
mailing list