=?utf-8?q?Balázs_Kéri?= <balazs.k...@ericsson.com> Message-ID: In-Reply-To: <llvm.org/llvm/llvm-project/pull/149...@github.com>
steakhal wrote: I frequently see you and @NagyDonat fighting clang-format. Let me share what I use in my workflow. I use VSCode, but this should work with any editor. Usually editors have hooks for file saves. I use the [Run on Save](https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave) extension, with the following hook: ```json { "emeraldwalk.runonsave": { "commands": [ { "match": "\\.(c|cpp|h|hpp)$", "isAsync": true, "cmd": "bash -c \"export PATH=\\\"/myclanginstall/clang-18/bin:$PATH\\\"; git clang-format --force\"" } ] } } ``` After every time I hit "save", it reshuffles the code that I touch, but nothing else. Its awesome. Let me know if you found this useful. https://github.com/llvm/llvm-project/pull/149106 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits