[PATCH] D52524: Add -Wno-poison-system-directories flag

Manoj Gupta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 19 10:51:54 PDT 2019


manojgupta added inline comments.


================
Comment at: clang/test/Frontend/warning-poison-system-directories.c:12
+// Missing target but included sysroot still causes the warning.
+// RUN: %clang -Wpoison-system-directories -I/usr/include --sysroot %S/Inputs/sysroot_x86_64_cross_linux_tree -c -o - %s 2> %t.2.stderr
+// RUN: FileCheck -check-prefix=WARN < %t.2.stderr %s
----------------
Thanks, Can you also add a test for  -Werror=poison-system-directories .


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D52524/new/

https://reviews.llvm.org/D52524





More information about the cfe-commits mailing list