[clang] [Clang] Add warning for non-portable include paths with trailing whitespace or dots (PR #190610)

Amelia Jochna via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 7 09:14:10 PDT 2026


================
@@ -944,6 +944,8 @@ def MemsetTransposedArgs : DiagGroup<"memset-transposed-args">;
 def DynamicClassMemaccess : DiagGroup<"dynamic-class-memaccess">;
 def NonTrivialMemcall : DiagGroup<"nontrivial-memcall">;
 def NonTrivialMemaccess : DiagGroup<"nontrivial-memaccess", [NonTrivialMemcall]>;
+def NonportableIncludePath : DiagGroup<"nonportable-include-path">;
+def NonportableSystemIncludePath : DiagGroup<"nonportable-system-include-path">;
----------------
ameliajochna wrote:

Agreed, the file could use some cleanup. I'd prefer to keep this patch focused on the functional change though — happy to do a follow-up NFC patch to reorganize the file if that sounds good.

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


More information about the cfe-commits mailing list