r175781 - [scan-build] fix xcode version parsing to handle dot releases. Fixes <rdar://problem/13265300>.
Ted Kremenek
kremenek at apple.com
Thu Feb 21 11:33:31 PST 2013
Author: kremenek
Date: Thu Feb 21 13:33:30 2013
New Revision: 175781
URL: http://llvm.org/viewvc/llvm-project?rev=175781&view=rev
Log:
[scan-build] fix xcode version parsing to handle dot releases. Fixes <rdar://problem/13265300>.
Modified:
cfe/trunk/tools/scan-build/scan-build
Modified: cfe/trunk/tools/scan-build/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/scan-build?rev=175781&r1=175780&r2=175781&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/scan-build (original)
+++ cfe/trunk/tools/scan-build/scan-build Thu Feb 21 13:33:30 2013
@@ -906,9 +906,12 @@ sub RunXcodebuild {
while(<DETECT_XCODE>) {
if (/^Xcode (.+)$/) {
- if ($1 >= 4.6) {
- $oldBehavior = 0;
- last;
+ my $ver = $1;
+ if ($ver =~ /^([0-9]+[.][0-9]+)[^0-9]?/) {
+ if ($1 >= 4.6) {
+ $oldBehavior = 0;
+ last;
+ }
}
}
}
More information about the cfe-commits
mailing list