On 22/09/2021 18:21, Reid Kleckner via cfe-users wrote:
Looking back in the thread, I found the example code, and I see that
MSVC refuses to inline this helper, but clang will inline it. I
believe clang is permitted to inline it, MSVC will export the static
data member (_the_keyboard), so every
On Thu, Sep 23, 2021 at 3:34 AM John Emmas via cfe-users <
cfe-users@lists.llvm.org> wrote:
> On 22/09/2021 18:21, Reid Kleckner via cfe-users wrote:
> > Looking back in the thread, I found the example code, and I see that
> > MSVC refuses to inline this helper, but clang will inline it. I
> > bel
Many thanks Dave,
Over on llvm-dev a contributer called Hans found this on Microsoft's
MSDN site:-
https://docs.microsoft.com/en-us/cpp/cpp/defining-inline-cpp-functions-with-dllexport-and-dllimport
So the current theory is that Microsoft's compiler can indeed inline DLL
functions - but p
On Thu, Sep 23, 2021 at 12:48 PM David Blaikie via cfe-users
wrote:
>
> On Thu, Sep 23, 2021 at 3:34 AM John Emmas via cfe-users
> wrote:
>> ...
>> Over on llvm-dev I'm trying to persuade them that declaring something as
>> __declspec(dllimport) should automatically exclude it from being
>> inli