Create a batch to call Clang

Hi Team,

I want to create a batch that calls and uses the Clang program to format my main.c file for example.

This should be done in tools like:

  • TI (Texas Instruments Code Composer)
  • Eclipse IDE
  • ARM Keil

Is this possible and if so how?

I am new in this field and therefore quite inexperienced, also with the creation of a batch.

Thanks a lot for your help!

Best regards

You mean something like a shell or Windows .bat script to run clang-format? Yes, that should be possible - I’m not sure what you want that script to do, though. clang-format can be run on main.c directly without the need for an intermediate script, I’d have thought.