Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/Lex/PPDirectives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,14 @@ void Preprocessor::HandleDirective(Token &Result) {

// C99 6.10.2 - Source File Inclusion.
case tok::pp_include:
// MBG don't handle #include
break;
// Handle #include.
return HandleIncludeDirective(SavedHash.getLocation(), Result);
case tok::pp___include_macros:
// Handle -imacros.
// MBG don't handle #include
break;
// Handle -imacros.
return HandleIncludeMacrosDirective(SavedHash.getLocation(), Result);

// C99 6.10.3 - Macro Replacement.
Expand All @@ -671,8 +675,12 @@ void Preprocessor::HandleDirective(Token &Result) {

// GNU Extensions.
case tok::pp_import:
// MBG don't handle #include
break;
return HandleImportDirective(SavedHash.getLocation(), Result);
case tok::pp_include_next:
// MBG don't handle #include
break;
return HandleIncludeNextDirective(SavedHash.getLocation(), Result);

case tok::pp_warning:
Expand Down