[libcxx-commits] [libcxx] [libc++] Fix header deprecations (PR #163356)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 3 10:40:02 PST 2025


================
@@ -89,7 +89,7 @@
 // UNSUPPORTED: LIBCXX-FREEBSD-FIXME
 
 // RUN: mkdir %t
-// RUN: %{{cxx}} %s %{{flags}} %{{compile_flags}} --trace-includes -fshow-skipped-includes --preprocess > /dev/null 2> %t/trace-includes.txt
+// RUN: %{{cxx}} %s %{{flags}} %{{compile_flags}} -Wno-deprecated --trace-includes -fshow-skipped-includes --preprocess > /dev/null 2> %t/trace-includes.txt
----------------
philnik777 wrote:

The `#warning` is emitted during preprocessing, while `[[deprecated]]` declarations are only diagnosed during Sema.

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


More information about the libcxx-commits mailing list