Skip to content

Instantly share code, notes, and snippets.

@Ortham
Last active February 18, 2018 09:42
Show Gist options
  • Save Ortham/d55e58c61c2191295b11bf19c99db202 to your computer and use it in GitHub Desktop.
Save Ortham/d55e58c61c2191295b11bf19c99db202 to your computer and use it in GitHub Desktop.
clang-format everything in Git source control
clang-format -style=file -i $(git ls-files *.cpp *.h)
#!/bin/sh
clang-format -style=file -i $(git ls-files *.cpp *.h)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment