commit | 8c2044b2e9712b046df2c723529c81794a8feee1 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Thu Apr 03 07:11:38 2008 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Thu Apr 03 07:11:38 2008 +0000 |
tree | 7a8f6b40961f2b752d42b2d9896a8fb4f6784038 | |
parent | 38471833c98a4b37a250bda9514cd35f44c9d55c [diff] |
Added "isFileID()" to FullSourceLoc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49148 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h index 4118a4c..faa5dc6 100644 --- a/include/clang/Basic/SourceLocation.h +++ b/include/clang/Basic/SourceLocation.h
@@ -244,6 +244,8 @@ 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; }