[clang] [C++20][Modules] Allow import for a header unit after #pragma (PR #111662)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 9 18:42:25 PDT 2024
================
@@ -951,9 +951,16 @@ void Preprocessor::Lex(Token &Result) {
break;
[[fallthrough]];
default:
- TrackGMFState.handleMisc();
- StdCXXImportSeqState.handleMisc();
- ModuleDeclState.handleMisc();
+ if (tok::isPragmaAnnotation(Result.getKind())) {
----------------
ChuanqiXu9 wrote:
This is slightly hack. Let's add a new case for it and maybe we need to update the state machine if required.
https://github.com/llvm/llvm-project/pull/111662
More information about the cfe-commits
mailing list