aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceLocation.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-03 07:11:38 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-03 07:11:38 +0000
commitec5d81b73fc8b7bceaf7a8ad3c7a1ffd6dca78b8 (patch)
tree7a8f6b40961f2b752d42b2d9896a8fb4f6784038 /include/clang/Basic/SourceLocation.h
parentbba1cf550015b088f94c2d3a60a769806f84cd15 (diff)
Added "isFileID()" to FullSourceLoc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r--include/clang/Basic/SourceLocation.h2
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;
}