[cfe-commits] r66680 - /cfe/trunk/utils/scan-build

Ted Kremenek kremenek at apple.com
Wed Mar 11 11:20:33 PDT 2009


Author: kremenek
Date: Wed Mar 11 13:20:33 2009
New Revision: 66680

URL: http://llvm.org/viewvc/llvm-project?rev=66680&view=rev
Log:
'-o' option now supports relative paths.

Modified:
    cfe/trunk/utils/scan-build

Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=66680&r1=66679&r2=66680&view=diff

==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Wed Mar 11 13:20:33 2009
@@ -1038,7 +1038,10 @@
       DieDiag("'-o' option requires a target directory name.\n");
     }
     
-    $HtmlDir = shift @ARGV;
+    # Construct an absolute path.  Uses the current working directory
+    # as a base if the original path was not absolute.
+    $HtmlDir = abs_path(shift @ARGV);
+    
     next;
   }
 





More information about the cfe-commits mailing list