6 Star 18 Fork 6

Gitee 极速下载/qt-creator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/qtproject/qt-creator
克隆/下载
purify2tasks.pl 982 Bytes
一键复制 编辑 原始数据 按行查看 历史
Kai Köhne 提交于 2023-01-04 15:52 +08:00 . Replace GPL-3.0 with GPL-3.0-only
#!/usr/bin/perl -w
# Copyright (C) 2016 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
=head1 NAME
purify2tasks.pl - Convert Rational Purify logs into Qt Creator task files.
=head1 SYNOPSIS
purify2tasks.pl < logfile > taskfile
=cut
use strict;
my $lastMessage = '';
while (my $line = <STDIN> ) {
chomp($line);
# --- extract file name based matching:
# Classname::function [c:\path\file.cpp:389]
if ($line =~ / \[(.*:\d+)\]$/) {
my $capture = $1;
my $lastColon = rindex($capture, ':');
my $fileName = substr($capture, 0, $lastColon);
my $lineNumber = substr($capture, $lastColon + 1);
$fileName =~ s|\\|/|g;
print $fileName, "\t", $lineNumber, "\tpurify\t", $lastMessage,"\n";
# match a warning/error report
} elsif ($line =~ /^\[[W|E|I]\] /) {
$lastMessage = substr($line, 4);
$lastMessage =~ s/\\/\\\\/g;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/qt-creator.git
git@gitee.com:mirrors/qt-creator.git
mirrors
qt-creator
qt-creator
v15.0.1

搜索帮助

371d5123 14472233 46e8bd33 14472233