forked from OSchip/llvm-project
Make scan-build process of --use-cc and --html-title more robust.
llvm-svn: 71567
This commit is contained in:
parent
5a4d12afbf
commit
3c2775f0b0
|
@ -1067,7 +1067,7 @@ while (@ARGV) {
|
||||||
if ($arg =~ /^--html-title(=(.+))?$/) {
|
if ($arg =~ /^--html-title(=(.+))?$/) {
|
||||||
shift @ARGV;
|
shift @ARGV;
|
||||||
|
|
||||||
if ($2 eq '') {
|
if (!defined $2 || $2 eq '') {
|
||||||
if (!@ARGV) {
|
if (!@ARGV) {
|
||||||
DieDiag("'--html-title' option requires a string.\n");
|
DieDiag("'--html-title' option requires a string.\n");
|
||||||
}
|
}
|
||||||
|
@ -1090,7 +1090,7 @@ while (@ARGV) {
|
||||||
shift @ARGV;
|
shift @ARGV;
|
||||||
my $cc;
|
my $cc;
|
||||||
|
|
||||||
if ($2 eq "") {
|
if (!defined $2 || $2 eq "") {
|
||||||
if (!@ARGV) {
|
if (!@ARGV) {
|
||||||
DieDiag("'--use-cc' option requires a compiler executable name.\n");
|
DieDiag("'--use-cc' option requires a compiler executable name.\n");
|
||||||
}
|
}
|
||||||
|
@ -1107,7 +1107,7 @@ while (@ARGV) {
|
||||||
if ($arg =~ /^--use-c\+\+(=(.+))?$/) {
|
if ($arg =~ /^--use-c\+\+(=(.+))?$/) {
|
||||||
shift @ARGV;
|
shift @ARGV;
|
||||||
|
|
||||||
if ($2 eq "") {
|
if (!defined $2 || $2 eq "") {
|
||||||
if (!@ARGV) {
|
if (!@ARGV) {
|
||||||
DieDiag("'--use-c++' option requires a compiler executable name.\n");
|
DieDiag("'--use-c++' option requires a compiler executable name.\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue