[petsc-dev] Style Guide: How to format single-line if/for/while-blocks?

Karl Rupp rupp at mcs.anl.gov
Mon Jan 21 22:16:53 CST 2013


> Well I think it is insane in 2012 that we all need to stare at the exact same ASCII strings with the exact same placement (each of you thinks is wrong) when we develop shared code, so please teach me how. Can this be done through some bridge that uses the current hg PETSc repository?

Yeah, even in *2013* it feels so wrong.
I'll see whether I can use Clang to provide this bridge.

>     Unfortunately the CPP crap in PETSc messes things up a bit, curse that CPP wish we could eliminate it all. And yes CPP is C preprocessor not C++.

Does it? For the formatting itself it's just another layer...

Best regards,
Karli



More information about the petsc-dev mailing list