[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
+
+//--- i.h
+#ifndef FOO_H
----------------
vsapsai wrote:

The mismatch between i.h and FOO_H is slightly annoying but don't think it is bad enough to block the change.

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


More information about the cfe-commits mailing list