diff options
| author | Jan Svoboda <jan_svoboda@apple.com> | 2023-12-18 21:11:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-18 12:11:27 -0800 |
| commit | f0691bcdf90bc44d0737e3395423e84b075ab84a (patch) | |
| tree | c89ea7aff214ff6ae9b3f2e2981a036758669d15 /lldb/test/API/python_api | |
| parent | 2a8f40d4628d9ee070114b5550e2b20e35667a54 (diff) | |
[clang][lex] Fix non-portability diagnostics with absolute path (#74782)
The existing code incorrectly assumes that `Path` can be empty. It
can't, it always contains at least `<` or `"`. On Unix, this patch fixes
an incorrect diagnostics that instead of `"/Users/blah"` suggested
`"Userss/blah"`. In assert builds, this would outright crash.
This patch also fixes a bug on Windows that would prevent the diagnostic
being triggered due to separator mismatch.
rdar://91172342
Diffstat (limited to 'lldb/test/API/python_api')
0 files changed, 0 insertions, 0 deletions
