[clang] [clang] Fix static analyzer concerns in #embed code (PR #99331)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 17 09:12:33 PDT 2024


================
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -std=c23 %s -E -verify
+// RUN: %clang_cc1 -std=c23 %s -E -verify --embed-dir=%S --embed-dir=%S/Inputs
 
+#embed <jk.txt>
----------------
AaronBallman wrote:

It feels like this test is unrelated to the test name now; should we move this into its own test file named something like `embed_search_paths.c` or something?

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


More information about the cfe-commits mailing list