We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents db6d46c + d1b97cb commit b1500ebCopy full SHA for b1500eb
clang/lib/Parse/Parser.cpp
@@ -635,6 +635,11 @@ bool Parser::ParseTopLevelDecl(DeclGroupPtrTy &Result,
635
Sema::ModuleImportState &ImportState) {
636
DestroyTemplateIdAnnotationsRAIIObj CleanupRAII(*this);
637
638
+ // Skip over the EOF token, flagging end of previous input for incremental
639
+ // processing
640
+ if (PP.isIncrementalProcessingEnabled() && Tok.is(tok::eof))
641
+ ConsumeToken();
642
+
643
Result = nullptr;
644
switch (Tok.getKind()) {
645
case tok::annot_pragma_unused:
0 commit comments