Preprocessor: don't keep comments under -traditional-cpp.
authorJordan Rose <jordan_rose@apple.com>
Tue, 5 Mar 2013 23:54:55 +0000 (23:54 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 5 Mar 2013 23:54:55 +0000 (23:54 +0000)
commit67b66231a836f37d4d2242b746ef74d8d3f47dc7
tree1e3663629a8902bded409abdeb1250c434ea0db3
parent3e067534088a1671619f1d6c701ce92e217be96c
Preprocessor: don't keep comments under -traditional-cpp.

This patch is designed for minimal intrusion into normal preprocessing
and compilation; under -E -traditional-cpp, the lexer will still
generate tok::comment nodes since it is preserving all whitespace, but
the output printer will then throw it away.

<rdar://problem/13338680>

llvm-svn: 176534
clang/lib/Frontend/PrintPreprocessedOutput.cpp
clang/test/Preprocessor/traditional-cpp.c