Can I convert a .clang-format file to the Eclipse formatter format?

1.4k Views Asked by At

I'm using Eclipse CDT to work on a repository which has a .clang-format file, and would like to use it. So - can I somehow convert it into the XML format which the Eclipse formatter uses?

Note: The reverse direction is the subject of this question.

1

There are 1 best solutions below

0
On

Well, the simplest solution is not to use Eclipse CDT. Here you can find a simple extension that will use clang format https://marketplace.eclipse.org/content/cppstyle