diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-28 16:49:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:36 +0200 |
commit | 1306e78c9852e150e133230a1f07eebb8b08c2a9 (patch) | |
tree | 855cb7d3ad3cbf130a828aebf36db3e589148999 /build2/test | |
parent | 096c98c77269a3e7ad151dd7788e9d96f8f8267d (diff) |
Add --no-line, --no-column options
Diffstat (limited to 'build2/test')
-rw-r--r-- | build2/test/script/parser.cxx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/build2/test/script/parser.cxx b/build2/test/script/parser.cxx index e714665..e3194cb 100644 --- a/build2/test/script/parser.cxx +++ b/build2/test/script/parser.cxx @@ -1270,10 +1270,20 @@ namespace build2 { string n (l.file->string ()); n += ':'; - n += to_string (l.line); - n += ':'; - n += to_string (l.column); - n += ": ("; + + if (!ops.no_line ()) + { + n += to_string (l.line); + n += ':'; + + if (!ops.no_column ()) + { + n += to_string (l.column); + n += ':'; + } + } + + n += " ("; n += s; n += ')'; name = path (move (n)); |