[cfe-commits] r49148 - /cfe/trunk/include/clang/Basic/SourceLocation.h
Ted Kremenek
kremenek at apple.com
Thu Apr 3 00:11:38 PDT 2008
Author: kremenek
Date: Thu Apr 3 02:11:38 2008
New Revision: 49148
URL: http://llvm.org/viewvc/llvm-project?rev=49148&view=rev
Log:
Added "isFileID()" to FullSourceLoc.
Modified:
cfe/trunk/include/clang/Basic/SourceLocation.h
Modified: cfe/trunk/include/clang/Basic/SourceLocation.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/SourceLocation.h?rev=49148&r1=49147&r2=49148&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/SourceLocation.h (original)
+++ cfe/trunk/include/clang/Basic/SourceLocation.h Thu Apr 3 02:11:38 2008
@@ -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;
}
More information about the cfe-commits
mailing list