Preproceessor: fix #if skipping under -traditional-cpp.
authorJordan Rose <jordan_rose@apple.com>
Fri, 22 Feb 2013 00:32:00 +0000 (00:32 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 22 Feb 2013 00:32:00 +0000 (00:32 +0000)
commit176057b5781e955fcfd908e90b20528292b50004
treee989ea762967dfdb2724c3fabf00616aa5d46152
parente30f61cb368680c80d2a9729b1ab2832068a70f7
Preproceessor: fix #if skipping under -traditional-cpp.

When parsing directives within skipped #if blocks, we don't want to retain
any whitespace. Previously we were just skipping comments, but it's not
possible to skip comments and retain other whitespace. This change matches
the usual behavior for parsing directives (i.e. the behavior outside of
skipped #if blocks).

<rdar://problem/13267695>

llvm-svn: 175840
clang/lib/Lex/PPDirectives.cpp
clang/test/Preprocessor/traditional-cpp.c