[Fortran] Massive whitespace patch.

Steve Kargl sgk@troutmask.apl.washington.edu
Mon Jan 1 22:08:00 GMT 2007


The attached patch is a massive whitespace clean up of the
gfortran frontend *.c files.  It tries to provide a consistent,
uniform  style across all files.  Issues addressed in this 
patch include:

1) Indentation.  The indentation levels are in the following
   order: 2 spaces, 4 spaces, 6 spaces, tab, tab + 2 spaces,
   tab + 4 spaces,  tab + 6 spaces, 2 tabs, etc.

   There are exceptions to properly align multiline comments,
   function call, and rational operators.

2) Alignment.  I tried to enforce the style recommended in the
   GNU Coding Standard for multi-line rational operators in 
   if(), while(), etc.  Alignment was also enforced for the 
   arguments in a multiline function invocation.  Finally,
   comments were properly aligned in the surrounding code.

3) Whitespace.
   i)   Function prototypes with pointers have been updated to
        remove whitespace between the * and the symbol name.
   ii)  Warning and error messages that span multiple lines 
        have trailing spaces in the continues strings, eg

        gfc_error ("A trailing space here --> "
                   "preceeds this line");

   iii) Two blank lines follow the closing } in all functions.
   iv)  A blank line separates a function and comment that 
        describes the function.

4) Probably many things that I've forgotten.

I planned TO COMMIT this patch tomorrow.
 

2007-01-01  Steven G. Kargl  <kargl@gcc.gnu.org>

	* openmp.c: Massive whitespace cleanup.
	* interface.c: Ditto.
	* intrinsic.c: Ditto.
	* trans-expr.c: Ditto.
	* trans-array.c: Ditto.
	* symbol.c: Ditto.
	* decl.c: Ditto.
	* matchexp.c: Ditto.
	* dump-parse-tree.c: Ditto.
	* array.c: Ditto.
	* trans-openmp.c: Ditto.
	* error.c: Ditto.
	* data.c: Ditto.
	* trans-const.c: Ditto.
	* trans-stmt.c: Ditto.
	* expr.c: Ditto.
	* module.c: Ditto.
	* trans.c: Ditto.
	* trans-types.c: Ditto.
	* scanner.c: Ditto.
	* gfortranspec.c: Ditto.
	* bbt.c: Ditto.
	* io.c: Ditto.
	* resolve.c: Ditto.
	* f95-lang.c: Ditto.
	* st.c: Ditto.
	* iresolve.c: Ditto.
	* trans-io.c: Ditto.
	* trans-decl.c: Ditto.
	* match.c: Ditto.
	* arith.c: Ditto.
	* parse.c: Ditto.
	* check.c: Ditto.
	* dependency.c: Ditto.
	* convert.c: Ditto.
	* primary.c: Ditto.
	* trans-intrinsic.c: Ditto.
	* options.c: Ditto.
	* misc.c: Ditto.
	* simplify.c: Ditto.
-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zxc.diff.bz2
Type: application/octet-stream
Size: 160950 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070101/c7cf8b7f/attachment.obj>


More information about the Fortran mailing list