diff options
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r-- | include/clang/Basic/SourceLocation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h index 4118a4c9aa..faa5dc69b8 100644 --- a/include/clang/Basic/SourceLocation.h +++ b/include/clang/Basic/SourceLocation.h @@ -244,6 +244,8 @@ public: const char* getSourceName() const; const FileEntry* getFileEntryForLoc() const; + bool isFileID() const { return Loc.isFileID(); } + bool operator==(const FullSourceLoc& RHS) const { return SrcMgr == RHS.SrcMgr && Loc == RHS.Loc; } |