Is there an easy way to parse/use a clang-format file with KEIL?
Yes, you can add it as a menu item under the tools tab. Just click "Customize Tools Menu" and add:
Arguments: -i #E
This will create a menu item which will format the current in focus file inside keil.
Other configurations can be made by changing the arguments.
(this all is assuming that clang-format.exe is in your bin search path)
So I'm not sure why, but when I run this from within KEIL, I get an unknown error. Meanwhile, if I run this from Command Prompt or Powershell, it works.
To Future Self:
Make sure to mark "Run Independent"
fill in the Initial Folder as "$P"
make sure there are no spaces in the folder names along the path
Is there any way to use clang-format after file was saved(updated)/build was triggered? Like it works in QtCreator or Visual Studio