]> granicus.if.org Git - clang/commit
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)
commitcf2c2e9588a12a716615850cc5bfacd9b20f68ef
tree3f72b10220ce36f108cb7adf0e2a7a494cb3654b
parent46a2290c030597e26022fe2b535c8e4b0d30a765
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>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176534 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/PrintPreprocessedOutput.cpp
test/Preprocessor/traditional-cpp.c