3

Cuddle opening function braces, anyone?

 2 years ago
source link: https://0pointer.net/blog/projects/cuddle-function.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Dear Lazyweb!

Does anyone know how I can teach GNU indent to cuddle opening function braces and the closing ')' of the argument list ? i.e.

int main(int argc, char* argv[]) {
}

instead of:

int main(int argc, char* argv[])
{
}

Any help appreciated!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK