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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 1 09:44:36 PDT 2024


================
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -E %s | FileCheck %s
+// CHECK: AAA
+// CHECK-NEXT: BBB
+R"(
+AAA)"
+BBB
----------------
AaronBallman wrote:

Thanks for the explanation! Perhaps a better name for the test file is `raw_string_print.cpp` or something along those lines, so nobody is wondering what this has to do with line numbers?

https://github.com/llvm/llvm-project/pull/77021


More information about the cfe-commits mailing list