Last active
June 6, 2022 22:34
-
-
Save nmoinvaz/1d54649dc8c67d66a5d8786f2198c112 to your computer and use it in GitHub Desktop.
PowerShell Clang-Format all files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I didn't even know we had those. Fixed.