Fix -Wcompound-token-split to give the same warnings under -E
authorRichard Smith <richard@metafoo.co.uk>
Tue, 1 Sep 2020 02:04:35 +0000 (19:04 -0700)
committerRichard Smith <richard@metafoo.co.uk>
Tue, 1 Sep 2020 03:59:20 +0000 (20:59 -0700)
commit113861b444610aebd1c05760a3e0ee6284f42211
tree3f35968c66de214fec7e0afff9fc58c04d6cf3db
parent0da84535b1e328188efbc1bb697dc7276f9e7d27
Fix -Wcompound-token-split to give the same warnings under -E
-frewrite-includes.

Remove the special-case (and highly implausible) diagnostic for a
compound token that crosses a file boundary, and instead model that case
the same as a compound token separated by whitespace, so that file
transitions and presumed file transitions behave the same way.
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/lib/Parse/Parser.cpp
clang/test/Parser/compound-token-split.cpp