Skip to content

Instantly share code, notes, and snippets.

@nmoinvaz
Last active June 6, 2022 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmoinvaz/1d54649dc8c67d66a5d8786f2198c112 to your computer and use it in GitHub Desktop.
Save nmoinvaz/1d54649dc8c67d66a5d8786f2198c112 to your computer and use it in GitHub Desktop.
PowerShell Clang-Format all files
$files=(git ls-files --exclude-standard); foreach ($file in $files) { if ((get-item $file).Extension -in ".cpp", ".hpp", ".c", ".cc", ".cxx", ".h", ".hxx", ".ixx", ".hh", ".m", ".mm") { &clang-format -i -style=file $file } }
@nmoinvaz
Copy link
Author

nmoinvaz commented Jun 6, 2022

I didn't even know we had those. Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment