[clang] Extend -Wnonportable-include-path with a warning about trailing whitespace or dots (PR #96960)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 28 06:10:41 PDT 2024


================
@@ -0,0 +1,11 @@
+// REQUIRES: case-insensitive-filesystem
+// RUN: %clang_cc1 -Wall %s
+
+#include "empty_file_to_include.h " // expected-warning {{non-portable path}}
----------------
zmodem wrote:

The expected-warning directives require running clang with the `-verify` flag.

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


More information about the cfe-commits mailing list