diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-21 17:38:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:34 +0200 |
commit | a199a557c732af8ec52f52b35d4b81673d607791 (patch) | |
tree | e4fc240f0bb31f5b4567b847e7df7de12be25cbd | |
parent | d9b26553b67e87dd45b652dd91eaac782fdf91f9 (diff) |
Add location::empty() predicate
-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; |