diff options
-rw-r--r-- | include/clang/Analysis/PathDiagnostic.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/clang/Analysis/PathDiagnostic.h b/include/clang/Analysis/PathDiagnostic.h index e9ee76c030..46c27f0fee 100644 --- a/include/clang/Analysis/PathDiagnostic.h +++ b/include/clang/Analysis/PathDiagnostic.h @@ -64,6 +64,14 @@ public: PathDiagnosticLocation(SourceRange r, const SourceManager &sm) : K(Range), R(r), S(0), SM(&sm) {} + + bool operator==(const PathDiagnosticLocation &X) const { + return K == X.K && R == X.R && S == X.S; + } + + bool operator!=(const PathDiagnosticLocation &X) const { + return K != X.K || R != X.R || S != X.S; + } FullSourceLoc asLocation() const; SourceRange asRange() const; |