diff options
-rw-r--r-- | build2/diagnostics | 3 |
1 files changed, 3 insertions, 0 deletions
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; |