[PATCH] D106924: [Preprocessor] -E -P: Ensure newline after 8 skipped lines.
Stephan Bergmann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 25 01:32:00 PDT 2021
sberg added a comment.
In D106924#2919406 <https://reviews.llvm.org/D106924#2919406>, @sberg wrote:
> Bisecting shows that this commit causes
>
> $ echo foo | clang -E -P -
>
> foo
>
> to emit a leading newline now.
>
> That breaks e.g. LibreOffice's `configure`, which uses `echo __clang_version__ | clang -E -P -` to obtain the value of that macro, and expects a single line of output.
I now filed https://bugs.llvm.org/show_bug.cgi?id=51616 "Bad newlines in -E -P output after https://reviews.llvm.org/D106924 '[Preprocessor] -E -P: Ensure newline after 8 skipped lines.'"
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106924/new/
https://reviews.llvm.org/D106924
More information about the cfe-commits
mailing list