[clang] [clang] Fix incorrect line numbers with -E and raw string (#47577) (PR #77021)

2024-03-29 Thread Steve Cornett via cfe-commits
stevecor wrote: Ping https://github.com/llvm/llvm-project/pull/77021 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix incorrect line numbers with -E and raw string (#47577) (PR #77021)

2024-03-11 Thread Steve Cornett via cfe-commits
stevecor wrote: Ping https://github.com/llvm/llvm-project/pull/77021 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix incorrect line numbers with -E and raw string (#47577) (PR #77021)

2024-02-09 Thread Steve Cornett via cfe-commits
stevecor wrote: > This will need a release note Are you asking me to do this? I did not see any instructions about how to do this. https://github.com/llvm/llvm-project/pull/77021 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang] Fix incorrect line numbers with -E and raw string (#47577) (PR #77021)

2024-02-09 Thread Steve Cornett via cfe-commits
@@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -E %s | FileCheck %s +// CHECK: AAA +// CHECK-NEXT: BBB +R"( +AAA)" +BBB stevecor wrote: This test demonstrates that the line `AAA` is followed immediately by the line `BBB` with no intervening blank line. Without the fix,

[clang] [clang] Fix incorrect line numbers with -E and raw string (#47577) (PR #77021)

2024-02-07 Thread Steve Cornett via cfe-commits
stevecor wrote: Ping https://github.com/llvm/llvm-project/pull/77021 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix incorrect line numbers with -E and raw string (#47577) (PR #77021)

2024-01-31 Thread Steve Cornett via cfe-commits
stevecor wrote: Ping https://github.com/llvm/llvm-project/pull/77021 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix incorrect line numbers with -E and raw string (#47577) (PR #77021)

2024-01-04 Thread Steve Cornett via cfe-commits
https://github.com/stevecor created https://github.com/llvm/llvm-project/pull/77021 When printing preprocessed tokens, handle newlines in string literals because raw string literals may contain newlines. >From 47aa72d5e68c08657a519c3d0a3a73fbd1c89372 Mon Sep 17 00:00:00 2001 From: Steve