[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 11:50:39 PDT 2024
================
@@ -361,7 +361,11 @@ class NonportablePath : Warning<
"non-portable path to file '%0'; specified path differs in case from file"
" name on disk">;
def pp_nonportable_path : NonportablePath,
- InGroup<DiagGroup<"nonportable-include-path">>;
+ InGroup<NonportablePath>;
+def pp_nonportable_path_trailing_whitespace : Warning<
+ "non-portable path to file '%0'; specified path contains trailing"
+ "whitespace or dots">,
----------------
zmodem wrote:
Good point. I think having both trailing dot and whitespace should be rare in practice, so just picking whichever comes last sounds fine to me.
https://github.com/llvm/llvm-project/pull/96960
More information about the cfe-commits
mailing list