[PATCH] Driver: support detecting driver mode when clang has a version suffix without dash (PR21094)
David Blaikie
dblaikie at gmail.com
Thu Oct 16 19:10:15 PDT 2014
================
Comment at: tools/driver/driver.cpp:258
@@ +257,3 @@
+ if (!DS) {
+ // Try again after stripping trailing -component.
+ ProgNameRef = ProgNameRef.slice(0, ProgNameRef.rfind('-'));
----------------
Might help if these comments were maybe illustrated with an example:
// Strip trailing version: clang-3.4 -> clang
// Strip trailing -component: clang-foo -> clang
http://reviews.llvm.org/D5833
More information about the cfe-commits
mailing list