Uncrustify has much more fine scale control than astyle. It is not perfect, 
but can match "most" of the many documented PETSc formatting rules. 

   My dream is to required processing each source file through crustify 
"automatically" before any source code is committed to the repository (so it is 
impossible for there ever to be wrongly formatted code checked in) but we 
haven't gotten there yet.

   Barry


On Apr 3, 2013, at 7:37 PM, Jed Brown <jedbr...@mcs.anl.gov> wrote:

> 
> On Wed, Apr 3, 2013 at 7:27 PM, Roy Stogner <royst...@ices.utexas.edu> wrote:
> On Wed, 3 Apr 2013, Jed Brown wrote:
> 
> (PETSc just went through this "uncrustify" process.
> 
> Do you mean metaphorically or "literally, we used the uncrustify
> command"?  uncrustify was my second or third choice for a beautifier
> after astyle and now I'm wondering if I ranked it too low.
> 
> We used 'uncrustify' the tool.
> 
> Our scripts are in $PETSC_DIR/src/contrib/style/
> 
> https://bitbucket.org/petsc/petsc
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire 
> the most talented Cisco Certified professionals. Visit the 
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html_______________________________________________
> Libmesh-devel mailing list
> Libmesh-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libmesh-devel


------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to