Re: [dev] Tools that can format C code into dwm.c/st.c style

2015-01-02 Thread Wander Nauta
I've fiddled with it a bit, but it doesn't seem like there's a set of flags that will Just Work. Suckless style seems to be not to put spaces around binary operators (in most cases), which indent(1) disagrees with quite stubbornly. At the same time, indent(1) indents all comments by using tabs, wh

Re: [dev] Tools that can format C code into dwm.c/st.c style

2015-01-02 Thread ACE
Thank you for the quick response. It seems like GNU indent may be what I'm looking for. Does anyone have the settings for GNU Indent to produce the same coding style? I've installed tabular, the default settings didn't provide the same alignment of the data values, but it's a plugin I intend to k

Re: [dev] Tools that can format C code into dwm.c/st.c style

2015-01-02 Thread Wander Nauta
Hello ACE, I would be surprised if GNU's indent program didn't have a flag to enforce that particular style. (It has more flags than your average military parade.) The indent program will do some alignment tricks as well if you tell it to, but you might like Tabular (https://github.com/godlygeek/

[dev] Tools that can format C code into dwm.c/st.c style

2015-01-02 Thread ACE
Hello. I was curious to see if anyone has any tools that supports you in formatting the code to the same style used in dwm.c or st.c. I tried playing around with "clang-format", but I couldn't find a way proper way to keep the function names like so: int main(int argc, char *argv[]) {...