[clang] [clang][Lex] warn on backslashes in include paths (PR #186770)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 16 07:44:38 PDT 2026


https://github.com/AaronBallman commented:

It's not clear to me that we should make these changes, at least as is. This is an idiomatic path separator on some platforms, so I worry about `clang-cl` diagnosing by default being too chatty on Windows compilations. It seems more reasonable for non-Windows targets though.

I think this should get its own diagnostic group so that users can disable it explicitly if they need to, there should be a release note in `clang/docs/ReleaseNotes.rst` as well so users know about the change.

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


More information about the cfe-commits mailing list