]> granicus.if.org Git - clang/commit
Fix the rest of rdar://6243860 hopefully. This requires changing FileIDInfo
authorChris Lattner <sabre@nondot.org>
Fri, 26 Sep 2008 20:12:23 +0000 (20:12 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 26 Sep 2008 20:12:23 +0000 (20:12 +0000)
commit721818304ac462d8c6ce05eecd02884033db78f1
treea71956e82aa61337bbefcc15fc7bb8df83a73bf4
parent1b9ad143c163a8e18f8dc34e8cdabfa668a53aea
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56688 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/SourceManager.h
include/clang/Lex/Preprocessor.h
lib/Basic/SourceManager.cpp
lib/Lex/PPDirectives.cpp
lib/Lex/PPLexerChange.cpp
lib/Lex/Preprocessor.cpp