git clang-format fails
Failure
$ git clang-format
YAML:6:35: error: invalid boolean
AllowShortFunctionsOnASingleLine: All
^~~
Error reading /home/kostaz/TheStuff/Dev/bitcoin/core/bitcoin/src/.clang-format: Invalid argument
Can't find usable .clang-format, using LLVM style
The following files would be modified but have unstaged changes:
M src/main.cpp
Please commit, stage, or stash them first.
Setup
- Ubuntu 14.04 64-bit
- clang-format-3.5
- Git master branch, commit b8d92236f61699846f67d8ce6cb55458a46f9de1
Note
I had to create soft link to /usr/bin/clang-format-3.5:
$ ls -l /usr/bin/clang-format*
lrwxrwxrwx 1 root root ... /usr/bin/clang-format -> /usr/bin/clang-format-3.5
lrwxrwxrwx 1 root root ... /usr/bin/clang-format-3.5 -> ../lib/llvm-3.5/bin/clang-format
-rwxr-xr-x 1 root root ... /usr/bin/clang-format-diff-3.5