[cfe-commits] r59669 - /cfe/trunk/include/clang/Basic/SourceManager.h
Ted Kremenek
kremenek at apple.com
Wed Nov 19 14:41:46 PST 2008
Author: kremenek
Date: Wed Nov 19 16:41:46 2008
New Revision: 59669
URL: http://llvm.org/viewvc/llvm-project?rev=59669&view=rev
Log:
Add version of 'getFileCharacteristic()' for FileIDs.
Modified:
cfe/trunk/include/clang/Basic/SourceManager.h
Modified: cfe/trunk/include/clang/Basic/SourceManager.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/SourceManager.h?rev=59669&r1=59668&r2=59669&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/SourceManager.h (original)
+++ cfe/trunk/include/clang/Basic/SourceManager.h Wed Nov 19 16:41:46 2008
@@ -453,7 +453,10 @@
SrcMgr::CharacteristicKind getFileCharacteristic(SourceLocation Loc) const {
return getFIDInfo(getPhysicalLoc(Loc).getFileID())->getFileCharacteristic();
}
-
+ SrcMgr::CharacteristicKind getFileCharacteristic(unsigned FileID) const {
+ return getFIDInfo(FileID)->getFileCharacteristic();
+ }
+
// Iterators over FileIDs.
class fileid_iterator {
More information about the cfe-commits
mailing list