Last active
February 18, 2019 21:36
-
-
Save krsna1729/ccd4ef535708f890dfb924d690992e8d to your computer and use it in GitHub Desktop.
clang-format codebase
This file contains 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
wget https://raw.githubusercontent.com/torvalds/linux/master/.clang-format | |
sed -i '/SortIncludes:/c SortIncludes: true' .clang-format | |
sed -i '/ReflowComments:/c ReflowComments: true' .clang-format | |
docker run --name clang --rm -it \ | |
-v /etc/passwd:/etc/passwd:ro -u `id -u`:`id -g` \ | |
-v $(pwd):/code \ | |
krsna1729/llvm \ | |
bash -c "shopt -s globstar && clang-format -i /code/**/*.[ch]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment