-
Couldn't load subscription status.
- Fork 15k
Closed
Labels
clang-formatquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Description
Summary
I was thinking to use git-clang-format on a project and I encounter some issues. IDK, maybe I'm missing something silly.
The error
Executing git-clang-format on a git project gives the following error:
`clang-format -list-ignored` returned 1
clang-format: Unknown command line argument '-list-ignored'. Try: 'clang-format --help'
clang-format: Did you mean '--lines'?
Steps to reproduce
Tested on Ubuntu 22.04:
- Run a container based on ubuntu 22.04:
docker run --rm -it -v $(pwd):/code -w /code ubuntu:22.04 bash - Install dependencies:
apt-get update && apt-get install -y git curl clang-format python3 - Download the extension:
curl -sSL https://raw.githubusercontent.com/llvm/llvm-project/main/clang/tools/clang-format/git-clang-format > /usr/local/bin/git-clang-format && chmod +x /usr/local/bin/git-clang-format - Run it:
git-clang-formatorgit clang-format
What am I missing ?
Metadata
Metadata
Assignees
Labels
clang-formatquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!