[all-commits] [llvm/llvm-project] 2b4c9b: [flang][driver] Add checks for missing option argu...
Andrzej WarzyĆski via All-commits
all-commits at lists.llvm.org
Fri Jun 4 07:17:43 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2b4c9bc4d489a4be1c5aa1924fba542dc80ab0c9
https://github.com/llvm/llvm-project/commit/2b4c9bc4d489a4be1c5aa1924fba542dc80ab0c9
Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
Date: 2021-06-04 (Fri, 04 Jun 2021)
Changed paths:
M flang/lib/Frontend/CompilerInvocation.cpp
A flang/test/Driver/missing-arg.f90
Log Message:
-----------
[flang][driver] Add checks for missing option arguments
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).
Differential Revision: https://reviews.llvm.org/D103554
More information about the All-commits
mailing list