Driver: support detecting driver mode when clang has a version suffix without dash...
authorHans Wennborg <hans@hanshq.net>
Fri, 17 Oct 2014 17:07:59 +0000 (17:07 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 17 Oct 2014 17:07:59 +0000 (17:07 +0000)
commit1a27e04af9a1e0301546953f9e9fcb101e7d0f1b
treecc2569a055a57f919fc1c957bbff3b0fc6371a61
parentf497d5511d1aff061c3af95b13796f8a4b05a4d0
Driver: support detecting driver mode when clang has a version suffix without dash (PR21094)

Clang would previously not get into C++ mode when invoked as 'clang++3.6'
(though clang++-3.6 would work).

I found the previous loop logic in this function confusing; hopefully this
makes it a little clearer.

Differential Revision: http://reviews.llvm.org/D5833

llvm-svn: 220052
clang/test/Driver/parse-progname.c [new file with mode: 0644]
clang/tools/driver/driver.cpp