[cfe-commits] r73310 - /cfe/trunk/include/clang/Basic/SourceManager.h

Chris Lattner sabre at nondot.org
Sat Jun 13 16:31:51 PDT 2009


Author: lattner
Date: Sat Jun 13 18:31:51 2009
New Revision: 73310

URL: http://llvm.org/viewvc/llvm-project?rev=73310&view=rev
Log:
add a handy predicate.

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=73310&r1=73309&r2=73310&view=diff

==============================================================================
--- cfe/trunk/include/clang/Basic/SourceManager.h (original)
+++ cfe/trunk/include/clang/Basic/SourceManager.h Sat Jun 13 18:31:51 2009
@@ -593,6 +593,12 @@
     return getFileCharacteristic(Loc) != SrcMgr::C_User;
   }
   
+  /// isInExternCSystemHeader - Returns if a SourceLocation is in an "extern C"
+  /// system header.
+  bool isInExternCSystemHeader(SourceLocation Loc) const {
+    return getFileCharacteristic(Loc) == SrcMgr::C_ExternCSystem;
+  }
+  
   //===--------------------------------------------------------------------===//
   // Line Table Manipulation Routines
   //===--------------------------------------------------------------------===//





More information about the cfe-commits mailing list