Support: Fix handling of args that begin with @ but aren't files
authorJustin Bogner <mail@justinbogner.com>
Fri, 6 Dec 2013 22:56:19 +0000 (22:56 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 6 Dec 2013 22:56:19 +0000 (22:56 +0000)
commit74999cfe0c35984eac653ce0d643542f24ce25a5
treedd8ed51821067aa21d1afa5c3a474976f462a066
parenta2bfea97432fe5edc153f1556a6e1c8fb0e5e67c
Support: Fix handling of args that begin with @ but aren't files

Command line arguments that begin with @ but aren't a path to an
existing file currently cause later @file arguments to be ignored.

Correctly skip over these arguments instead of trying to read a
non-existent file 20 times and giving up.

Since the problem manifests in the clang driver, the test is in that
repository.

Fixes rdar://problem/15590906

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196620 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/CommandLine.cpp