From a60da308bfcc003fd07d2b7d848ccb8d166e472a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Apr 2016 14:38:00 +0200 Subject: Redo config inheritance logic --- build2/diagnostics | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'build2/diagnostics') diff --git a/build2/diagnostics b/build2/diagnostics index ffb24ff..c0ba6ec 100644 --- a/build2/diagnostics +++ b/build2/diagnostics @@ -280,10 +280,11 @@ namespace build2 class location { public: - // Note that location maintains a shallow reference to path. + // Note that location maintains a shallow reference to path. Zero lines + // or columns are not printed. // location (): file (nullptr), line (0), column (0) {} - location (const path* f, uint64_t l, uint64_t c) + location (const path* f, uint64_t l = 0, uint64_t c = 0) : file (f), line (l), column (c) {} const path* file; -- cgit v1.1