>> I recently found out that none of the QRect inline functions are inlined >> by msvc no matter what compiler options I pass. Tested with recent cl >> (19.51.36244) but also saw this with older msvc2022 compilers. >> Is this known and should/can we do something against this? > > Get a better compiler. > > MSVC is well-known for *not* inlining functions that are dllimported, if they > are anything except the most trivial. clang-cl functions as drop-in replacement for msvc that would deliver superior codegen without the need to migrate to another runtime library. but unfortunately clang-cl is still not supported by qt (neither officially, nor with CI build tests). i hope that qt could officially support clang-cl at one point (and use it to build their binary distribution) -- Development mailing list [email protected] https://lists.qt-project.org/listinfo/development
Re: [Development] MSVC not inlining QRect inline functions (anymore?)
EXT Tim Blechmann via Development Sun, 07 Jun 2026 17:23:31 -0700
- [Development] MSVC not inlining QRect ... Christian Ehrlicher via Development
- Re: [Development] MSVC not inlini... Christian Ehrlicher via Development
- Re: [Development] MSVC not inlini... Thiago Macieira
- Re: [Development] MSVC not in... EXT Tim Blechmann via Development
- Re: [Development] MSVC no... Cristian Adam via Development
- Re: [Development] MSVC no... Thiago Macieira
- Re: [Development] MSV... Tim Blechmann via Development
- Re: [Development] MSVC not in... Marc Mutz via Development
- Re: [Development] MSVC no... Thiago Macieira
- Re: [Development] MSVC not inlini... Philippe
- Re: [Development] MSVC not in... Mårten Nordheim via Development
- Re: [Development] MSVC no... Christian Ehrlicher via Development
- Re: [Development] MSV... Mårten Nordheim via Development
- Re: [Development] MSVC no... Philippe
