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

1

7

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?

Dubbin answered 17/12, 2021 at 20:40 Comment(1)
Can try github.com/johnmcfarlane/unformat but doesn't work that reliablySpirogyra
A
8

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.

Auxin answered 7/4, 2022 at 18:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.