- Notifications
You must be signed in to change notification settings - Fork 15.3k
Open
Labels
clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl''clang' and 'clang++' user-facing binaries. Not 'clang-cl'confirmedVerified by a second partyVerified by a second partyquality-of-implementation
Description
A little diagnostic bug.
If you do clang++ -- -fsyntax-only, Clang says:
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.
Metadata
Metadata
Assignees
Labels
clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl''clang' and 'clang++' user-facing binaries. Not 'clang-cl'confirmedVerified by a second partyVerified by a second partyquality-of-implementation