[cfe-commits] r56396 - /cfe/trunk/utils/ccc-analyzer

Ted Kremenek kremenek at apple.com
Sun Sep 21 11:04:50 PDT 2008


Author: kremenek
Date: Sun Sep 21 13:04:49 2008
New Revision: 56396

URL: http://llvm.org/viewvc/llvm-project?rev=56396&view=rev
Log:
Patch by Richard Godbee:

Output to .info files the absolute paths to files that were rejected by the
parser or crashed the analyzer.

Modified:
    cfe/trunk/utils/ccc-analyzer

Modified: cfe/trunk/utils/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=56396&r1=56395&r2=56396&view=diff

==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Sun Sep 21 13:04:49 2008
@@ -14,7 +14,7 @@
 
 use strict;
 use warnings;
-use Cwd;
+use Cwd qw/ abs_path /;
 use File::Temp qw/ tempfile /;
 use File::Path qw / mkpath /;
 
@@ -42,7 +42,7 @@
   system $CC, @$Args, "-E", "-o", $PPFile;
   close ($PPH);
   open (OUT, ">", "$PPFile.info") or die "Cannot open $PPFile.info\n";
-  print OUT "$file\n";
+  print OUT abs_path($file), "\n";
   print OUT "$ErrorType\n";
   print OUT "@$Args\n";
   close OUT;





More information about the cfe-commits mailing list