Shows a colored diff of changes that clang-format will produce on a given file and prompts to apply the changes. Uses LLVM style.
- clang-format
- colordiff
Ensure script is executable and copy to somewhere on your path e.g.
chmod +x clang-format-interactive
cp clang-format-interactive /usr/local/bin/clang-format-interactive
clang-format-interactive filename.cpp
MIT
Lewis Christie