Skip to content

Instantly share code, notes, and snippets.

@daniel-j-h
Last active August 29, 2015 14:27
Show Gist options
  • Save daniel-j-h/476b0a6e7968e654bedd to your computer and use it in GitHub Desktop.
Save daniel-j-h/476b0a6e7968e654bedd to your computer and use it in GitHub Desktop.
clang-modernize all the things (in parallel)
#!/usr/bin/env bash
git ls-files '*.cpp' | \
xargs -I{} -P $(nproc) clang-modernize -p build -final-syntax-check -format -style=file -summary -for-compilers=clang-3.4,gcc-4.8 -include . -exclude third_party {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment