From a199a557c732af8ec52f52b35d4b81673d607791 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 21 Oct 2016 17:38:25 +0200 Subject: Add location::empty() predicate --- build2/diagnostics | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build2/diagnostics') diff --git a/build2/diagnostics b/build2/diagnostics index 5441df1..091b313 100644 --- a/build2/diagnostics +++ b/build2/diagnostics @@ -286,6 +286,9 @@ namespace build2 location (const path* f, uint64_t l = 0, uint64_t c = 0) : file (f), line (l), column (c) {} + bool + empty () const {return file == nullptr;} + const path* file; uint64_t line; uint64_t column; -- cgit v1.1