diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-09-21 18:04:49 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-09-21 18:04:49 +0000 |
commit | 5f2825f6fa24a792c11cf96accd76538a2fd951e (patch) | |
tree | f22b0b86cedcdbf39ae3769bd3bedd25fe129f47 | |
parent | ebb7413bbe518fa6230eddebf6e51857b47b5cd3 (diff) |
Patch by Richard Godbee:
Output to .info files the absolute paths to files that were rejected by the
parser or crashed the analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56396 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/ccc-analyzer | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer index 845977eb7c..182b06c013 100755 --- a/utils/ccc-analyzer +++ b/utils/ccc-analyzer @@ -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 @@ sub ProcessClangFailure { 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; |