Skip to content

Instantly share code, notes, and snippets.

@daoseng33
Created August 23, 2017 08:35
Show Gist options
  • Save daoseng33/9b351586f04f356b875229e2a609f11c to your computer and use it in GitHub Desktop.
Save daoseng33/9b351586f04f356b875229e2a609f11c to your computer and use it in GitHub Desktop.
echo "\Clang-Format all files in current dir except ones in */libs/* folder and names containing *.framework.*"
find . -name "*.[hm]" ! -path "*/libs/*" ! -path "*.framework*" ! -path "*/ThirdParty/*" ! -path "*/Pods/*" -print0 | xargs -0 clang-format -i
echo "DONE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment