diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-06-13 23:31:51 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-06-13 23:31:51 +0000 |
| commit | a7445277732456aa4ca319a2ea1973135d54ea50 (patch) | |
| tree | f9cf32eafbde9f04b06ef7940c6344a0d983dea4 | |
| parent | 3192cc852616e6923f1433118b281635ef306e4f (diff) | |
| download | bcm5719-llvm-a7445277732456aa4ca319a2ea1973135d54ea50.tar.gz bcm5719-llvm-a7445277732456aa4ca319a2ea1973135d54ea50.zip | |
add a handy predicate.
llvm-svn: 73310
| -rw-r--r-- | clang/include/clang/Basic/SourceManager.h | 6 |
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 //===--------------------------------------------------------------------===// |

