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 | 32c1181468005e57a00b22ea7eca1477328e5650 (patch) | |
| tree | 9ae81b4793d4c31a928fca03151c8ce112326bfa /clang | |
| parent | 172f04dfe64475c77bf14038a61ac270966c3deb (diff) | |
| download | bcm5719-llvm-32c1181468005e57a00b22ea7eca1477328e5650.tar.gz bcm5719-llvm-32c1181468005e57a00b22ea7eca1477328e5650.zip | |
Patch by Richard Godbee:
Output to .info files the absolute paths to files that were rejected by the
parser or crashed the analyzer.
llvm-svn: 56396
Diffstat (limited to 'clang')
| -rwxr-xr-x | clang/utils/ccc-analyzer | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/utils/ccc-analyzer b/clang/utils/ccc-analyzer index 845977eb7c1..182b06c013c 100755 --- a/clang/utils/ccc-analyzer +++ b/clang/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; |

