[Kc] a tool to normalize CPP directive indentation

David Nicol davidnicol at gmail.com
Sat Jan 6 22:31:33 PST 2007


So I'm reading through some header files and wanting all the #ifdefs and
whatnot to line up sanely so I wrote the attached.

I have not tested it extensively but it is appears to correctly ignore
parts that are commented out, and it also is supposed to ignore
comment-open marks, that is, /*, when it is part of a double-quoted string.

It will also complain when it has a line with an odd number of
uncommented "s.

-- 
pre-Α, Α, Β, rc, release.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CPP_conditional_indenter.pl
Type: application/x-perl
Size: 1435 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/kc/attachments/20070107/11489fc9/attachment.bin 


More information about the kc mailing list