Cycling74 / min-devkit

Tools, documentation, and reference implementation of a Max Package built using the Min-API.
MIT License
158 stars 31 forks source link

Syntax and code formatters #113

Open robclouth opened 5 years ago

robclouth commented 5 years ago

The macro-based syntax causes problems with clang-format. Is the syntax finalised? Any other hints for code formatting other than putting a // clang-format off at the top of each class?

tap commented 5 years ago

Sorry for slow response while we were getting Max 8 out into the world!

Are you using the .clang-format file from the min-devkit repository? From the master branch? Or another file for the configuration?

Some work went into make it work with the macros. Of course one could also avoid using the macros and type out the stuff in them manually too. I'm curious to see which macros or in which context they are still causing trouble with Clang Format.

Thanks!