================ @@ -460,6 +460,18 @@ Decl *Parser::ParseExportDeclaration() { assert(Tok.is(tok::kw_export)); SourceLocation ExportLoc = ConsumeToken(); + if (Tok.is(tok::code_completion)) { + cutOffParsing(); + SemaCodeCompletion::ParserCompletionContext PCC; + if (PP.isIncrementalProcessingEnabled()) { + PCC = SemaCodeCompletion::PCC_TopLevelOrExpression; + } else { + PCC = SemaCodeCompletion::PCC_Namespace; + }; ---------------- zyn0217 wrote:
```suggestion PCC = PP.isIncrementalProcessingEnabled() ? SemaCodeCompletion::PCC_TopLevelOrExpression : SemaCodeCompletion::PCC_Namespace; ``` https://github.com/llvm/llvm-project/pull/107982 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits