diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 | 
| commit | bfef399519ca9b8a4b4c6b563253bad7e0eeffe0 (patch) | |
| tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /include/clang/AST/ExternalASTSource.h | |
| parent | 6a0372513edbc473b538d2f724efac50405d6fef (diff) | |
Diffstat (limited to 'include/clang/AST/ExternalASTSource.h')
| -rw-r--r-- | include/clang/AST/ExternalASTSource.h | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/include/clang/AST/ExternalASTSource.h b/include/clang/AST/ExternalASTSource.h index 81fcf242b65e..b077426e6a47 100644 --- a/include/clang/AST/ExternalASTSource.h +++ b/include/clang/AST/ExternalASTSource.h @@ -329,7 +329,12 @@ public:    /// \brief Whether this pointer is non-NULL.    ///    /// This operation does not require the AST node to be deserialized. -  operator bool() const { return Ptr != 0; } +  LLVM_EXPLICIT operator bool() const { return Ptr != 0; } + +  /// \brief Whether this pointer is non-NULL. +  /// +  /// This operation does not require the AST node to be deserialized. +  bool isValid() const { return Ptr != 0; }    /// \brief Whether this pointer is currently stored as an offset.    bool isOffset() const { return Ptr & 0x01; }  | 
