diff options
author | Chris Lattner <sabre@nondot.org> | 2008-09-26 20:12:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-09-26 20:12:23 +0000 |
commit | c88a23e8d7a85b002789794ca83eb9da81eae7de (patch) | |
tree | f86c320616e57db7cc0d6b1f51bffc2d81a5f9db /clang/lib/Lex/Preprocessor.cpp | |
parent | 71efd8159eb41cb53f21385b56c7f6ec73456956 (diff) | |
download | bcm5719-llvm-c88a23e8d7a85b002789794ca83eb9da81eae7de.tar.gz bcm5719-llvm-c88a23e8d7a85b002789794ca83eb9da81eae7de.zip |
Fix the rest of rdar://6243860 hopefully. This requires changing FileIDInfo
to whether the fileid is a 'extern c system header' in addition to whether it
is a system header, most of this is spreading plumbing around. Once we have that,
PPLexerChange bases its "file enter/exit" notifications to PPCallbacks to
base the system header state on FileIDInfo instead of HeaderSearch. Finally,
in Preprocessor::HandleIncludeDirective, mirror logic in GCC: the system headerness
of a file being entered can be set due to the #includer or the #includee.
llvm-svn: 56688
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 36e80c91cfa..691f46ac2d1 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -117,17 +117,6 @@ Preprocessor::~Preprocessor() { delete Callbacks; } -bool Preprocessor::isSystemHeader(const FileEntry* F) const { - if (F) { - DirectoryLookup::DirType DirInfo = HeaderInfo.getFileDirFlavor(F); - if (DirInfo == DirectoryLookup::SystemHeaderDir || - DirInfo == DirectoryLookup::ExternCSystemHeaderDir) - return true; - } - return false; -} - - /// Diag - Forwarding function for diagnostics. This emits a diagnostic at /// the specified Token's location, translating the token's start /// position in the current buffer into a SourcePosition object for rendering. |