clang formatting file for VSCode

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
ExXec
Posts: 71
Joined: Sat Oct 20, 2018 4:02 pm

clang formatting file for VSCode

Post by ExXec » Sat Jun 22, 2019 4:19 pm

Hey,

I know there are some C code formatting guidelines in the wiki. Did someone make a .clang file for that style?
Would be useful for running the auto formatter on VSCode.

-ExXec

stijn
Posts: 335
Joined: Thu Apr 24, 2014 9:13 am

Re: clang formatting file for VSCode

Post by stijn » Sat Jun 22, 2019 7:04 pm

See https://github.com/micropython/micropython/issues/4223 for example. Conclusion: clang-format cannot format all files constistently so it's not included in the main repository. Most 'standard' code is fine though, so it's usable to e.g. format selected text only.

ExXec
Posts: 71
Joined: Sat Oct 20, 2018 4:02 pm

Re: clang formatting file for VSCode

Post by ExXec » Sat Jun 22, 2019 8:29 pm

Thanks, thats a shame though

Post Reply