On Tue, Mar 18, 2008 at 4:09 PM, Isaac Morland <ijmorlan at cs.uwaterloo.ca> wrote: > On Tue, 18 Mar 2008, Brett Cannon wrote: > > > Lastly, I would like to have it strip trailing whitespace in C files. > > The only problem is that I don't know if removing trailing whitespace > > could possibly cause a problem or not. Anyone know? > > I would be worried about the sequence backslash-space-newline. Off the > top of my head I can't see why that would occur in valid code, but > dropping the space would give you an escaped newline which could be > different from the original. I'd be worried about some weird case related > to macro expansion or definition. > > http://gcc.gnu.org/onlinedocs/cppinternals/Lexer.html has some information > related to the Gnu C preprocessor which may be relevant. > Weird code is not allowed. =) > Have you considered also forcing Mac "\r" and DOS "\r\n" line endings to > Unix "\n" style? > We let svn handle that. -Brett
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4