DavidSpickett wrote:

You have formatting to fix, I suggest you just copy and paste the diff in this 
one time.

Folks will have different ways to setup clang-format, I use the script 
https://clang.llvm.org/docs/ClangFormat.html#script-for-patch-reformatting and 
manually run it (because I am too lazy to integrate it somewhere :) ).

I also add "black" for python formatting, into one giant command:
```
git diff -U0 --no-color --relative HEAD^ | 
./clang/tools/clang-format/clang-format-diff.py -p1 -i -binary 
/home/david.spickett/build-llvm-aarch64/bin/clang-format && darker --revision 
HEAD~1 $(git diff-tree --no-commit-id --name-only HEAD -r)
```

If you're using an editor, do look into applying the format on save, it's much 
more convenient.

https://github.com/llvm/llvm-project/pull/149396
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to