citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 4a13aa7206b62139be01995c98f3982353a0db45
parent c2b30bbaa872ae8b68fc83c126124646626fd9d6
Author: Kyle Milz <kyle@0x30.net>
Date:   Fri, 13 Jan 2017 19:10:54 -0700

inst: improve log message and join correctly

Diffstat:
Minst_fe.cc | 6+++---
Mt/e2e_ansi.t | 2+-
Mt/e2e_intent.t | 2+-
Mt/e2e_link_multiple.t | 2+-
Mt/inst_basic_link.t | 2+-
Mt/inst_binop.t | 2+-
Mt/inst_dowhile.t | 2+-
Mt/inst_fail.t | 2+-
Mt/inst_for.t | 2+-
Mt/inst_funcdef.t | 2+-
Mt/inst_if.t | 2+-
Mt/inst_log.t | 4++--
Mt/inst_macro.t | 2+-
Mt/inst_nosrc.t | 2+-
Mt/inst_return.t | 2+-
Mt/inst_srcext.t | 4++--
Mt/inst_switch.t | 2+-
Mt/inst_two_src.t | 2+-
Mt/inst_while.t | 2+-
Mt/wrap_cmake.t | 4++--
Mt/wrap_devenv.t | 4++--
Mt/wrap_jam.t | 4++--
Mt/wrap_make.t | 4++--
Mt/wrap_ninja.t | 4++--
Mt/wrap_nmake.t | 4++--
25 files changed, 35 insertions(+), 35 deletions(-)

diff --git a/inst_fe.cc b/inst_fe.cc @@ -189,9 +189,9 @@ InstFrontend::process_cmdline() m_args.push_back(const_cast<char *>(m_lib_path.c_str())); } - m_log << "Modified command line is '"; - for (auto &arg : m_args) - m_log << arg << " "; + m_log << "Command line is '" << m_args[0]; + for (unsigned int i = 1; i < m_args.size(); ++i) + m_log << " " << m_args[i]; m_log << "'" << std::endl; if (m_source_files.size() != 0) diff --git a/t/e2e_ansi.t b/t/e2e_ansi.t @@ -26,7 +26,7 @@ Compilers path = '' PATH = '' Found source file '' Link detected, adding '' to command line. -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 1 Lines of source code diff --git a/t/e2e_intent.t b/t/e2e_intent.t @@ -47,7 +47,7 @@ Compilers path = '' PATH = '' Found source file '' Link detected, adding '' to command line. -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 24 Lines of source code diff --git a/t/e2e_link_multiple.t b/t/e2e_link_multiple.t @@ -43,7 +43,7 @@ Found source file '' Found source file '' Found source file '' Link detected, adding '' to command line. -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 7 Lines of source code diff --git a/t/inst_basic_link.t b/t/inst_basic_link.t @@ -18,7 +18,7 @@ Compilers path = '' PATH = '' Found source file '' Link detected, adding '' to command line. -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 1 Lines of source code diff --git a/t/inst_binop.t b/t/inst_binop.t @@ -53,7 +53,7 @@ my $check_good = <<EOF; >> citrun_inst Compilers path = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 18 Lines of source code diff --git a/t/inst_dowhile.t b/t/inst_dowhile.t @@ -31,7 +31,7 @@ my $check_good = <<EOF; >> citrun_inst Compilers path = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 7 Lines of source code diff --git a/t/inst_fail.t b/t/inst_fail.t @@ -23,7 +23,7 @@ my $out_good = <<EOF; >> citrun_inst Compilers path = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' clang: error: error reading '' Rewriting failed. diff --git a/t/inst_for.t b/t/inst_for.t @@ -31,7 +31,7 @@ my $check_good = <<EOF; >> citrun_inst Compilers path = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 7 Lines of source code diff --git a/t/inst_funcdef.t b/t/inst_funcdef.t @@ -35,7 +35,7 @@ my $check_good = <<EOF; >> citrun_inst Compilers path = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 9 Lines of source code diff --git a/t/inst_if.t b/t/inst_if.t @@ -41,7 +41,7 @@ my $check_good = <<EOF; >> citrun_inst Compilers path = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 12 Lines of source code diff --git a/t/inst_log.t b/t/inst_log.t @@ -43,7 +43,7 @@ my $citrun_log_good =<<EOF ; Compilers path = '' PATH = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 22 Lines of source code @@ -62,7 +62,7 @@ Restored '' Compilers path = '' PATH = '' Link detected, adding '' to command line. -Modified command line is '' +Command line is '' No source files found on command line. EOF diff --git a/t/inst_macro.t b/t/inst_macro.t @@ -32,7 +32,7 @@ my $check_good = <<EOF; >> citrun_inst Compilers path = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 7 Lines of source code diff --git a/t/inst_nosrc.t b/t/inst_nosrc.t @@ -15,7 +15,7 @@ my $out_good = <<EOF; >> citrun_inst Compilers path = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' clang: error: error reading '' Rewriting failed. diff --git a/t/inst_return.t b/t/inst_return.t @@ -41,7 +41,7 @@ my $check_good = <<EOF; >> citrun_inst Compilers path = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 12 Lines of source code diff --git a/t/inst_srcext.t b/t/inst_srcext.t @@ -15,7 +15,7 @@ my $out_good = <<EOF; >> citrun_inst Compilers path = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 1 Lines of source code @@ -39,7 +39,7 @@ for (@supported_exts) { $out_good = <<EOF; >> citrun_inst Compilers path = '' -Modified command line is '' +Command line is '' No source files found on command line. Running as citrun_inst, not calling exec() EOF diff --git a/t/inst_switch.t b/t/inst_switch.t @@ -45,7 +45,7 @@ my $check_good = <<EOF; >> citrun_inst Compilers path = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 14 Lines of source code diff --git a/t/inst_two_src.t b/t/inst_two_src.t @@ -26,7 +26,7 @@ PATH = '' Found source file '' Found source file '' Link detected, adding '' to command line. -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 1 Lines of source code diff --git a/t/inst_while.t b/t/inst_while.t @@ -33,7 +33,7 @@ my $check_good = <<EOF; >> citrun_inst Compilers path = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 8 Lines of source code diff --git a/t/wrap_cmake.t b/t/wrap_cmake.t @@ -26,7 +26,7 @@ my $log_good = <<EOF; Compilers path = '' PATH = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 6 Lines of source code @@ -42,7 +42,7 @@ Restored '' Compilers path = '' PATH = '' Link detected, adding '' to command line. -Modified command line is '' +Command line is '' No source files found on command line. EOF diff --git a/t/wrap_devenv.t b/t/wrap_devenv.t @@ -53,13 +53,13 @@ my $log_good = <<EOF; >> citrun_inst Compilers path = '' PATH = '' -Modified command line is '' +Command line is '' No source files found on command line. Forked compiler '' >> citrun_inst Compilers path = '' PATH = '' -Modified command line is '' +Command line is '' No source files found on command line. Forked compiler '' EOF diff --git a/t/wrap_jam.t b/t/wrap_jam.t @@ -30,7 +30,7 @@ my $log_good = <<EOF; Compilers path = '' PATH = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 1 Lines of source code @@ -46,7 +46,7 @@ Restored '' Compilers path = '' PATH = '' Link detected, adding '' to command line. -Modified command line is '' +Command line is '' No source files found on command line. EOF diff --git a/t/wrap_make.t b/t/wrap_make.t @@ -31,7 +31,7 @@ my $log_good = <<EOF; Compilers path = '' PATH = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 1 Lines of source code @@ -47,7 +47,7 @@ Restored '' Compilers path = '' PATH = '' Link detected, adding '' to command line. -Modified command line is '' +Command line is '' No source files found on command line. EOF diff --git a/t/wrap_ninja.t b/t/wrap_ninja.t @@ -37,7 +37,7 @@ my $log_good = <<EOF; Compilers path = '' PATH = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 1 Lines of source code @@ -53,7 +53,7 @@ Restored '' Compilers path = '' PATH = '' Link detected, adding '' to command line. -Modified command line is '' +Command line is '' No source files found on command line. EOF diff --git a/t/wrap_nmake.t b/t/wrap_nmake.t @@ -24,7 +24,7 @@ my $log_good = <<EOF ; Compilers path = '' PATH = '' Found source file '' -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 1 Lines of source code @@ -41,7 +41,7 @@ Compilers path = '' PATH = '' Found source file '' Link detected, adding '' to command line. -Modified command line is '' +Command line is '' Added clangtool argument '' Instrumentation of '' finished: 1 Lines of source code