aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-09-25 00:25:16 +0000
committerTed Kremenek <kremenek@apple.com>2008-09-25 00:25:16 +0000
commit82a1253077cd0832e4d347062b911cd305ab62d1 (patch)
treef5d3a705115d121d54288655943aa7dd60bb3082
parentba80c9abccd97d9771c1dfa1a862e66ddd4daedd (diff)
Use .txt extension for info files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56598 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/ccc-analyzer6
-rwxr-xr-xutils/scan-build6
2 files changed, 6 insertions, 6 deletions
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer
index 3a2f0f2837..b3d59dfd7f 100755
--- a/utils/ccc-analyzer
+++ b/utils/ccc-analyzer
@@ -41,13 +41,13 @@ sub ProcessClangFailure {
system $CC, @$Args, "-E", "-o", $PPFile;
close ($PPH);
- open (OUT, ">", "$PPFile.info") or die "Cannot open $PPFile.info\n";
+ open (OUT, ">", "$PPFile.info.txt") or die "Cannot open $PPFile.info.txt\n";
print OUT abs_path($file), "\n";
print OUT "$ErrorType\n";
print OUT "@$Args\n";
close OUT;
- `uname -a >> $PPFile.info 2>&1`;
- `$CC -v >> $PPFile.info 2>&1`;
+ `uname -a >> $PPFile.info.txt 2>&1`;
+ `$CC -v >> $PPFile.info.txt 2>&1`;
system 'mv',$ofile,"$PPFile.stderr.txt";
}
diff --git a/utils/scan-build b/utils/scan-build
index 6480a0124d..d2c25b73dd 100755
--- a/utils/scan-build
+++ b/utils/scan-build
@@ -452,7 +452,7 @@ sub Postprocess {
# to update the common prefix directory.
if (-d "$Dir/crashes") {
opendir(DIR, "$Dir/crashes");
- my @files = grep { /[.]info$/; } readdir(DIR);
+ my @files = grep { /[.]info.txt$/; } readdir(DIR);
closedir(DIR);
foreach my $file (@files) {
open IN, "$Dir/crashes/$file" or DieDiag("cannot open $file\n");
@@ -656,7 +656,7 @@ ENDTEXT
if ($Crashes) {
# Read the crash directory for files.
opendir(DIR, "$Dir/crashes");
- my @files = grep { /[.]info$/ } readdir(DIR);
+ my @files = grep { /[.]info.txt$/ } readdir(DIR);
closedir(DIR);
if (scalar(@files)) {
@@ -670,7 +670,7 @@ ENDTEXT
ENDTEXT
foreach my $file (sort @files) {
- $file =~ /(.+).info$/;
+ $file =~ /(.+).info.txt$/;
# Get the preprocessed file.
my $ppfile = $1;
# Open the info file and get the name of the source file.