From: Iain Sandoe Date: Sat, 24 Apr 2021 14:44:34 +0000 (+0100) Subject: c++tools : Add a simple handler for ModuleCompiledRequest. X-Git-Tag: basepoints/gcc-13~4781 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c89d805397f1f09b1a58f01d5cb90211c85a9abc;p=thirdparty%2Fgcc.git c++tools : Add a simple handler for ModuleCompiledRequest. This just replies with "OK". c++tools/ChangeLog: * resolver.cc (module_resolver::ModuleCompiledRequest): Add a simple handler. * resolver.h: Declare handler for ModuleCompiledRequest. --- diff --git a/c++tools/resolver.cc b/c++tools/resolver.cc index edd4624b1212..421fdaa55fe2 100644 --- a/c++tools/resolver.cc +++ b/c++tools/resolver.cc @@ -307,3 +307,14 @@ module_resolver::IncludeTranslateRequest (Cody::Server *s, Cody::Flags, return 0; } +/* This handles a client notification to the server that a CMI has been + produced for a module. For this simplified server, we just accept + the transaction and respond with "OK". */ + +int +module_resolver::ModuleCompiledRequest (Cody::Server *s, Cody::Flags, + std::string &) +{ + s->OKResponse(); + return 0; +} diff --git a/c++tools/resolver.h b/c++tools/resolver.h index b2f4381b4fa8..c1ce9564e7fc 100644 --- a/c++tools/resolver.h +++ b/c++tools/resolver.h @@ -96,6 +96,10 @@ public: std::string &include) override; + using parent::ModuleCompiledRequest; + virtual int ModuleCompiledRequest (Cody::Server *s, Cody::Flags Flags, + std::string &Module) override; + private: using parent::GetCMISuffix; virtual char const *GetCMISuffix () override;