Bug ID: 41787
Summary: clang-cl and lld-link: Come up with a way to make typo
correction work for '/' style flags
CC: firstname.lastname@example.org, neeil...@live.com,
clang-cl and lld-link accept /foo flags in addition to -foo flags.
Since /foo is also a valid path name on non-win, the logic goes like so:
1. If /foo is a known flag, treat it as flag (use -- to treat it as file name)
2. If it isn't, treat it as a file name
So if a /foo flag has a typo, we treat it as a filename, hence don't show typo
suggestions for it, and then show a "file not found" diagnostic.
We should find a way to make typo suggestions work for /foo style flags.
- Have typo suggestions for filenames as well, and have a unified candidate
list for both (idea from ruiu on issue 37006)
- Add "3. If file of this name doesn't exist, consider it as a possible typo of
The former is a nicer user experience since it also gives us spelling
suggestions for typos in file names, but it requires getting a list of files
off disk (only in error cases though) and is more work to implement.
You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list