Issue |
137760
|
Summary |
Bad diagnostic after `--`: `no such file or directory X, did you mean X`
|
Labels |
new issue
|
Assignees |
|
Reporter |
HolyBlackCat
|
A little diagnostic bug.
If you do `clang++ -- -fsyntax-only`, Clang says:
```console
error: no such file or directory: '-fsyntax-only'; did you mean '-fsyntax-only'?
```
It shouldn't do this for obvious reasons. `did you mean '-some-flag'` should only trigger for parameters before the `--`.
Tested on Clang 20 and trunk.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs