From 36dc6dcb5c6d7991d2086fb1601daf8236ef4cd4 Mon Sep 17 00:00:00 2001 From: Virgile Prevosto <virgile.prevosto@m4x.org> Date: Fri, 15 Mar 2024 17:00:57 +0100 Subject: [PATCH] [clang] fix ghost support in clang 17 --- framaCIRGen_src/ACSLComment.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/framaCIRGen_src/ACSLComment.cpp b/framaCIRGen_src/ACSLComment.cpp index 6a2c6c43..bef7c751 100644 --- a/framaCIRGen_src/ACSLComment.cpp +++ b/framaCIRGen_src/ACSLComment.cpp @@ -280,6 +280,7 @@ void ACSLComment::parseGhostGlobal( cpp.EnterSourceFile(file,0,loc); cpp.enableIncrementalProcessing(); clang::Parser::DeclGroupPtrTy Decl; + parser->Initialize(); #if CLANG_VERSION_MAJOR >= 15 clang::Sema::ModuleImportState mis = clang::Sema::ModuleImportState::NotACXX20Module; while (!parser->ParseTopLevelDecl(Decl,mis)) { -- GitLab