[PATCH] Preprocessor: preserve whitespace in -traditional-cpp mode.

Jordan Rose jordan_rose at apple.com
Tue Feb 12 14:13:21 PST 2013


Hi rsmith,

This allows Lexer's "keep whitespace" mode to work for -E -traditional-cpp, which is used by people (ab)using the preprocessor to preprocess things other than C.

The internal uses we know about don't rely on the GNU behavior that whitespace is also preserved within macros, so this patch doesn't attempt to do that.

http://llvm-reviews.chandlerc.com/D399

Files:
  include/clang/Lex/Lexer.h
  lib/Lex/Lexer.cpp
  lib/Lex/PPDirectives.cpp
  test/Preprocessor/traditional-cpp.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D399.1.patch
Type: text/x-patch
Size: 9011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130212/e1f30b19/attachment.bin>


More information about the cfe-commits mailing list