This is an archive of the discontinued LLVM Phabricator instance.

[flang][driver] Add checks for missing option arguments
ClosedPublic

Authored by awarzynski on Jun 2 2021, 1:57 PM.

Details

Summary

With this patch, the following invocation of the frontend driver will
return an error:

flang-new -fc1 input-file.f90 -o

Similar logic applies to other options that require arguments.

Similar checks are already available in the compiler driver, flang-new
(that's implemented in clangDriver).

Diff Detail

Event Timeline

awarzynski created this revision.Jun 2 2021, 1:57 PM
awarzynski requested review of this revision.Jun 2 2021, 1:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2021, 1:57 PM
This revision is now accepted and ready to land.Jun 3 2021, 8:44 PM
This revision was automatically updated to reflect the committed changes.