[clang] [Modules] [HeaderSearch] Don't reenter headers if it is pragma once (PR #76119)

Volodymyr Sapsai via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 23 14:45:32 PST 2024


================
@@ -0,0 +1,20 @@
+// RUN: rm -rf %t
+// RUN: mkdir -p %t
+// RUN: split-file %s %t
+//
+// RUN: %clang_cc1 -std=c++20 %t/foo.cpp -I%t -fsyntax-only -verify
----------------
vsapsai wrote:

You don't really need `-I%t`, the test works without it. But don't have a strong opinion.

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


More information about the cfe-commits mailing list