]> granicus.if.org Git - clang/commitdiff
add a handy predicate.
authorChris Lattner <sabre@nondot.org>
Sat, 13 Jun 2009 23:31:51 +0000 (23:31 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 13 Jun 2009 23:31:51 +0000 (23:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73310 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/SourceManager.h

index 43369829387dab1404759ea779a8d1c40cba9f12..57ae9a45114dded140a477d0cc974c7aa55d7ed1 100644 (file)
@@ -593,6 +593,12 @@ public:
     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
   //===--------------------------------------------------------------------===//