Is there a way to generate a clang-format file from a C++ code?

Viewed 401

Supposing I have a C++ code already written and I want to generate a clang-format file from it, in order to note all the format settings of my code in this file, is there a way of doing it?

1 Answers

Clang-Format Detector allows to generate clang-format file for the selected files. It also has a very convenient feature of seeing the result and adjusting it. Won't work for entire codebase though.

Related