Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-24 Thread Stephen Kelly
Thiago Macieira wrote: > On Tuesday 24 March 2015 19:40:52 Stephen Kelly wrote: >> Thiago Macieira wrote: >> > On Tuesday 17 March 2015 09:40:08 Olivier Goffart wrote: >> >> > Opinions for or against? >> >> >> >> I think it's a good idea, just like we have QT_USE_QSTRINGBUILDER, we >> >> could ha

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-24 Thread Thiago Macieira
On Tuesday 24 March 2015 19:40:52 Stephen Kelly wrote: > Thiago Macieira wrote: > > On Tuesday 17 March 2015 09:40:08 Olivier Goffart wrote: > >> > Opinions for or against? > >> > >> I think it's a good idea, just like we have QT_USE_QSTRINGBUILDER, we > >> could have QT_CHECK_ASSERT or something

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-24 Thread Stephen Kelly
Thiago Macieira wrote: > On Tuesday 17 March 2015 09:40:08 Olivier Goffart wrote: >> > Opinions for or against? >> >> I think it's a good idea, just like we have QT_USE_QSTRINGBUILDER, we >> could have QT_CHECK_ASSERT or something like that. > > Ok, I'll prepare a patch. Did this happen? Thank

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-17 Thread Thiago Macieira
On Tuesday 17 March 2015 09:40:08 Olivier Goffart wrote: > > Opinions for or against? > > I think it's a good idea, just like we have QT_USE_QSTRINGBUILDER, we could > have QT_CHECK_ASSERT or something like that. Ok, I'll prepare a patch. -- Thiago Macieira - thiago.macieira (AT) intel.com So

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-17 Thread Olivier Goffart
On Monday 16 March 2015 14:54:53 Thiago Macieira wrote: > On Monday 16 March 2015 21:05:41 Stephen Kelly wrote: > > Thiago Macieira wrote: > > > Because we want to benefit from the new code and remove the unnecessary > > > #ifndef and Q_UNUSED. If we don't change the current macro, then we > > > de

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-16 Thread Thiago Macieira
On Monday 16 March 2015 21:05:41 Stephen Kelly wrote: > Thiago Macieira wrote: > > Because we want to benefit from the new code and remove the unnecessary > > #ifndef and Q_UNUSED. If we don't change the current macro, then we > > deprecate the old one and convert all the code to the new one > > Y

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-16 Thread Stephen Kelly
Thiago Macieira wrote: > Because we want to benefit from the new code and remove the unnecessary > #ifndef and Q_UNUSED. If we don't change the current macro, then we > deprecate the old one and convert all the code to the new one You could deprecate the old behavior. #ifdef QT_BUILDING_QT || QT

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-15 Thread Thiago Macieira
On Sunday 15 March 2015 19:28:22 André Pönitz wrote: > On Fri, Mar 13, 2015 at 12:41:32PM -0700, Thiago Macieira wrote: > > > Which can still be done in one line. But we don't even need to do it. > > > We > > > can leave the old one as it, and use Q_ASSERT_UNUSED for the new asserts > > > > Befor

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-15 Thread Giuseppe D'Angelo
On 13 March 2015 at 20:41, Thiago Macieira wrote: > > Before we discuss the name, we have to discuss doing a 10k-line change to 1884 > files in Qt. But why would such a change be necessary? -- Giuseppe D'Angelo ___ Development mailing list Development

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-15 Thread André Pönitz
On Fri, Mar 13, 2015 at 12:41:32PM -0700, Thiago Macieira wrote: > > Which can still be done in one line. But we don't even need to do it. We > > can leave the old one as it, and use Q_ASSERT_UNUSED for the new asserts > > Before we discuss the name, we have to discuss doing a 10k-line change to

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-13 Thread Thiago Macieira
On Friday 13 March 2015 18:02:51 Olivier Goffart wrote: > On Friday 13 March 2015 09:08:35 Thiago Macieira wrote: > > It's a minor SIC and I still call it justified. Anyone who was using > > #ifndef was making assumptions about Q_ASSERT's internals and how it is > > declared. We should all agree th

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-13 Thread Oswald Buddenhagen
On Fri, Mar 13, 2015 at 06:02:51PM +0100, Olivier Goffart wrote: > On Friday 13 March 2015 09:08:35 Thiago Macieira wrote: > > It's a minor SIC and I still call it justified. Anyone who was using #ifndef > > was making assumptions about Q_ASSERT's internals and how it is declared. > > We should all

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-13 Thread Olivier Goffart
On Friday 13 March 2015 09:08:35 Thiago Macieira wrote: > It's a minor SIC and I still call it justified. Anyone who was using #ifndef > was making assumptions about Q_ASSERT's internals and how it is declared. > We should all agree that making assumptions is a bad idea. It was documented: http:/

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-13 Thread Thiago Macieira
On Friday 13 March 2015 12:23:00 Stephen Kelly wrote: > Thiago Macieira wrote: > >> What macro works for multiple versions of Qt? > >> Why should everyone define such a macro themselves in their code? How > >> about contributing it back to qglobal.h? What would it be called? And to > >> bring this

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-13 Thread Stephen Kelly
Thiago Macieira wrote: >> What macro works for multiple versions of Qt? >> Why should everyone define such a macro themselves in their code? How >> about contributing it back to qglobal.h? What would it be called? And to >> bring this full circle, how about swapping the semantic of the old and >>

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-12 Thread Thiago Macieira
On Thursday 12 March 2015 23:22:17 Stephen Kelly wrote: > Thiago Macieira wrote: > > This was intentional and the minor SIC was expected. It only happens if > > you're calling a static function that only exists for Q_ASSERT -- not many > > people do that. > > Oops, nobody told Allen: > > https:/

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-12 Thread Stephen Kelly
Thiago Macieira wrote: > This was intentional and the minor SIC was expected. It only happens if > you're calling a static function that only exists for Q_ASSERT -- not many > people do that. Oops, nobody told Allen: https://github.com/KDAB/GammaRay/commit/44ac33d970e I think this affects far

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-05 Thread Thiago Macieira
On Thursday 05 March 2015 09:17:57 Thiago Macieira wrote: > I'll add the note to the Q_ASSERT and will add the parentheses. https://codereview.qt-project.org/107883 -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center ___

Re: [Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-05 Thread Thiago Macieira
On Thursday 05 March 2015 13:59:01 Stephen Kelly wrote: > Hello, > > After commit ebef2ad1 (Make the empty Q_ASSERT still check its > argument for validity, 2014-09-11), there are two source > incompatibilities compared to Qt 5.4. I understand the message in the > commit. > > The following code f

[Development] Two source incompatibilities in Qt 5.5 with Clang

2015-03-05 Thread Stephen Kelly
Hello, After commit ebef2ad1 (Make the empty Q_ASSERT still check its argument for validity, 2014-09-11), there are two source incompatibilities compared to Qt 5.4. I understand the message in the commit. The following code fails to compile with -DQT_NO_DEBUG: sic.cpp:10:14: error: use of undecl