summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-13 23:31:51 +0000
committerChris Lattner <sabre@nondot.org>2009-06-13 23:31:51 +0000
commita7445277732456aa4ca319a2ea1973135d54ea50 (patch)
treef9cf32eafbde9f04b06ef7940c6344a0d983dea4
parent3192cc852616e6923f1433118b281635ef306e4f (diff)
downloadbcm5719-llvm-a7445277732456aa4ca319a2ea1973135d54ea50.tar.gz
bcm5719-llvm-a7445277732456aa4ca319a2ea1973135d54ea50.zip
add a handy predicate.
llvm-svn: 73310
-rw-r--r--clang/include/clang/Basic/SourceManager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/include/clang/Basic/SourceManager.h b/clang/include/clang/Basic/SourceManager.h
index 43369829387..57ae9a45114 100644
--- a/clang/include/clang/Basic/SourceManager.h
+++ b/clang/include/clang/Basic/SourceManager.h
@@ -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
//===--------------------------------------------------------------------===//
OpenPOWER on IntegriCloud