We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 428bc15 + 7f15022 commit 771c93eCopy full SHA for 771c93e
clang/lib/Parse/Parser.cpp
@@ -629,6 +629,11 @@ bool Parser::ParseTopLevelDecl(DeclGroupPtrTy &Result,
629
Sema::ModuleImportState &ImportState) {
630
DestroyTemplateIdAnnotationsRAIIObj CleanupRAII(*this);
631
632
+ // Skip over the EOF token, flagging end of previous input for incremental
633
+ // processing
634
+ if (PP.isIncrementalProcessingEnabled() && Tok.is(tok::eof))
635
+ ConsumeToken();
636
+
637
Result = nullptr;
638
switch (Tok.getKind()) {
639
case tok::annot_pragma_unused:
0 commit comments