[Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-25 Thread Milian Wolff
On Donnerstag, 25. Februar 2016 09:02:11 CET Thiago Macieira wrote: > On quinta-feira, 25 de fevereiro de 2016 17:33:52 PST Cristian Adam wrote: > > This might be a burden for some of the Qt developers (Windows ones). > > > > But all the Qt users get a modern / flexible moc, see this thread: > > h

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-26 Thread Jędrzej Nowacki
On Thursday 25 of February 2016 19:22:55 Milian Wolff wrote: > On Donnerstag, 25. Februar 2016 09:02:11 CET Thiago Macieira wrote: > > On quinta-feira, 25 de fevereiro de 2016 17:33:52 PST Cristian Adam wrote: > > > This might be a burden for some of the Qt developers (Windows ones). > > > > > > B

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-26 Thread Curtis Mitch
olff > > Subject: Re: [Development] templated QObjects [was: Re: We are planning to > upgrade qdoc to use clang for parsing C++] > > On Thursday 25 of February 2016 19:22:55 Milian Wolff wrote: > > On Donnerstag, 25. Februar 2016 09:02:11 CET Thiago Macieira wrote: > > > On

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-26 Thread Milian Wolff
On Freitag, 26. Februar 2016 09:43:40 CET Jędrzej Nowacki wrote: > On Thursday 25 of February 2016 19:22:55 Milian Wolff wrote: > > On Donnerstag, 25. Februar 2016 09:02:11 CET Thiago Macieira wrote: > > > On quinta-feira, 25 de fevereiro de 2016 17:33:52 PST Cristian Adam wrote: > > > > This migh

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-26 Thread Thiago Macieira
On sexta-feira, 26 de fevereiro de 2016 20:30:28 PST Milian Wolff wrote: > > The main problems of templated QObject are captured more or less in this > > > > thread: > > http://lists.qt-project.org/pipermail/development/2013-March/010288.html > > > > Personally I still think it would be a fancy

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-26 Thread Marc Mutz
On Saturday 27 February 2016 00:56:08 Thiago Macieira wrote: > Have I convinced you? I'm only getting warmed up. I'm sure I can find more > issues. That's all correct. But can't we create a subset of features that the QObject template may use in order to make that subset work? After all, functio

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-27 Thread Thiago Macieira
On sábado, 27 de fevereiro de 2016 09:48:36 PST Marc Mutz wrote: > On Saturday 27 February 2016 00:56:08 Thiago Macieira wrote: > > Have I convinced you? I'm only getting warmed up. I'm sure I can find more > > issues. > > That's all correct. But can't we create a subset of features that the > QOb

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-27 Thread Olivier Goffart
Am Freitag, 26. Februar 2016, 15:56:08 CET schrieb Thiago Macieira: > On sexta-feira, 26 de fevereiro de 2016 20:30:28 PST Milian Wolff wrote: > > > The main problems of templated QObject are captured more or less in > > > this > > > > > > thread: > > > http://lists.qt-project.org/pipermail/deve

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-27 Thread Thiago Macieira
On sábado, 27 de fevereiro de 2016 12:56:11 PST Olivier Goffart wrote: > > First of all, note that you're asking that > > > > a) installing generated code > > b) including such generated code from your public headers > > Not necessarily installed: > - The feature might be used only for applicat

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-29 Thread Иван Комиссаров
2016-02-26 11:43 GMT+03:00 Jędrzej Nowacki : > On Thursday 25 of February 2016 19:22:55 Milian Wolff wrote: > > The thought evolved over last months and now I think that QAIM should not > be > QObject at all, it is just an unnecessary cost. > > Hm... Really? http://doc.qt.io/qt-5/qabstractitemmode

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-29 Thread Bo Thorsen
Den 27-02-2016 kl. 20:07 skrev Thiago Macieira: On sábado, 27 de fevereiro de 2016 12:56:11 PST Olivier Goffart wrote: First of all, note that you're asking that a) installing generated code b) including such generated code from your public headers Not necessarily installed: - The featu

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-29 Thread Jędrzej Nowacki
On Friday 26 of February 2016 15:56:08 Thiago Macieira wrote: > > I.e. what problems would we get from having to install the > > moc files? > > Lots. And probably all go away if instead of installing anything we use QMetaObjectBuilder (assuming it's api stabilization). Yes it would have perform

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-29 Thread Jędrzej Nowacki
On Monday 29 of February 2016 11:11:28 Иван Комиссаров wrote: > 2016-02-26 11:43 GMT+03:00 Jędrzej Nowacki > On Thursday 25 of February 2016 19:22:55 Milian Wolff wrote: > > > > The thought evolved over last months and now I think that QAIM should not > > be > > QObject at all, it is just an unne

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-29 Thread Milian Wolff
On Friday, February 26, 2016 3:56:08 PM CET Thiago Macieira wrote: > On sexta-feira, 26 de fevereiro de 2016 20:30:28 PST Milian Wolff wrote: > > > The main problems of templated QObject are captured more or less in > > > this > > > > > > thread: > > > http://lists.qt-project.org/pipermail/devel

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-29 Thread Thiago Macieira
On segunda-feira, 29 de fevereiro de 2016 10:09:51 PST Jędrzej Nowacki wrote: > On Friday 26 of February 2016 15:56:08 Thiago Macieira wrote: > > > I.e. what problems would we get from having to install the > > > moc files? > > > > Lots. > > And probably all go away if instead of installing anyth

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-29 Thread Thiago Macieira
On segunda-feira, 29 de fevereiro de 2016 13:21:52 PST Milian Wolff wrote: > What do you say? What am I missing that would break my assumptions? This is what Olivier proposed too. Like I said, I don't like it, but it works. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architec

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-29 Thread Mathias Hasselmann
Am 25.02.2016 um 19:22 schrieb Milian Wolff: Can you explain what those reasons are? I'd really love to write a generic QAbstractTableModel implementation that operates using concepts. Currently that would require type erasure and thus another set of virtual function calls... I.e. in many proje

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-01 Thread Mathias Hasselmann
Am 29.02.2016 um 17:40 schrieb Thiago Macieira: On segunda-feira, 29 de fevereiro de 2016 13:21:52 PST Milian Wolff wrote: What do you say? What am I missing that would break my assumptions? This is what Olivier proposed too. Like I said, I don't like it, but it works. Well, and it's propo

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-01 Thread Thiago Macieira
On terça-feira, 1 de março de 2016 17:39:28 PST Mathias Hasselmann wrote: > Am 29.02.2016 um 17:40 schrieb Thiago Macieira: > > On segunda-feira, 29 de fevereiro de 2016 13:21:52 PST Milian Wolff wrote: > >> What do you say? What am I missing that would break my assumptions? > > > > This is what O

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Ziller Eike
> On Feb 29, 2016, at 1:21 PM, Milian Wolff wrote: > > On Friday, February 26, 2016 3:56:08 PM CET Thiago Macieira wrote: >> On sexta-feira, 26 de fevereiro de 2016 20:30:28 PST Milian Wolff wrote: The main problems of templated QObject are captured more or less in this thre

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Milian Wolff
On Mittwoch, 2. März 2016 10:14:18 CET Ziller Eike wrote: > > On Feb 29, 2016, at 1:21 PM, Milian Wolff wrote: > > > > On Friday, February 26, 2016 3:56:08 PM CET Thiago Macieira wrote: > > > >> On sexta-feira, 26 de fevereiro de 2016 20:30:28 PST Milian Wolff wrote: > >> > The main proble

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Ziller Eike
> On Mar 2, 2016, at 11:23 AM, Milian Wolff wrote: > > On Mittwoch, 2. März 2016 10:14:18 CET Ziller Eike wrote: >>> On Feb 29, 2016, at 1:21 PM, Milian Wolff wrote: >>> >>> On Friday, February 26, 2016 3:56:08 PM CET Thiago Macieira wrote: >>> On sexta-feira, 26 de fevereiro de 2016 20:

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Milian Wolff
On Mittwoch, 2. März 2016 13:48:49 CET Ziller Eike wrote: > > On Mar 2, 2016, at 11:23 AM, Milian Wolff wrote: > > > > On Mittwoch, 2. März 2016 10:14:18 CET Ziller Eike wrote: > > > >>> On Feb 29, 2016, at 1:21 PM, Milian Wolff > >>> wrote: > >>> > >>> On Friday, February 26, 2016 3:56:08 PM

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Thiago Macieira
On quarta-feira, 2 de março de 2016 10:14:18 PST Ziller Eike wrote: > That would break if any other code in the application (possibly in a > different library linked to it) has e.g. using Blah = Foo; > right? > That sounds pretty fragile. Especially if an application loads plugins. Correct. You c

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Thiago Macieira
On quarta-feira, 2 de março de 2016 16:48:08 PST Milian Wolff wrote: > A simple solution would then be a macro for an explicit instantiation, > similar to what we already do with > Q_DECLARE_LOGGING_CATEGORY/Q_LOGGING_CATEGORY. Only there then would moc > generate the static meta object. That shou

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Milian Wolff
On Mittwoch, 2. März 2016 09:47:33 CET Thiago Macieira wrote: > On quarta-feira, 2 de março de 2016 16:48:08 PST Milian Wolff wrote: > > A simple solution would then be a macro for an explicit instantiation, > > similar to what we already do with > > Q_DECLARE_LOGGING_CATEGORY/Q_LOGGING_CATEGORY.

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Thiago Macieira
On quarta-feira, 2 de março de 2016 19:24:15 PST Milian Wolff wrote: > On Mittwoch, 2. März 2016 09:47:33 CET Thiago Macieira wrote: > > On quarta-feira, 2 de março de 2016 16:48:08 PST Milian Wolff wrote: > > > A simple solution would then be a macro for an explicit instantiation, > > > similar t

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Milian Wolff
On Mittwoch, 2. März 2016 11:28:07 CET Thiago Macieira wrote: > On quarta-feira, 2 de março de 2016 19:24:15 PST Milian Wolff wrote: > > On Mittwoch, 2. März 2016 09:47:33 CET Thiago Macieira wrote: > > > On quarta-feira, 2 de março de 2016 16:48:08 PST Milian Wolff wrote: > > > > A simple solution

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Thiago Macieira
On quarta-feira, 2 de março de 2016 20:59:41 PST Milian Wolff wrote: > Hey Thiago, > > what is "the runtime merging problem on Windows"? Ever heard of the dynamic_cast problem on Windows? It's the same. Here's the problem: QMetaObjects are identified by their pointer addresses: two meta objects

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Milian Wolff
On Mittwoch, 2. März 2016 12:59:30 CET Thiago Macieira wrote: > On quarta-feira, 2 de março de 2016 20:59:41 PST Milian Wolff wrote: > > Hey Thiago, > > > > what is "the runtime merging problem on Windows"? > > Ever heard of the dynamic_cast problem on Windows? It's the same. Great, thanks a lot

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Thiago Macieira
On quarta-feira, 2 de março de 2016 22:34:16 PST Milian Wolff wrote: > On Mittwoch, 2. März 2016 12:59:30 CET Thiago Macieira wrote: > > On quarta-feira, 2 de março de 2016 20:59:41 PST Milian Wolff wrote: > > > Hey Thiago, > > > > > > what is "the runtime merging problem on Windows"? > > > > Eve

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Olivier Goffart
Am Mittwoch, 2. März 2016, 13:43:39 CET schrieb Thiago Macieira: > On quarta-feira, 2 de março de 2016 22:34:16 PST Milian Wolff wrote: > > On Mittwoch, 2. März 2016 12:59:30 CET Thiago Macieira wrote: > > > On quarta-feira, 2 de março de 2016 20:59:41 PST Milian Wolff wrote: > > > > Hey Thiago, >

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-02 Thread Thiago Macieira
On quinta-feira, 3 de março de 2016 08:24:23 PST Olivier Goffart wrote: > > I'm not against the principle. I am against the implementation details, as > > Olivier's current commit has. > > This commit was a starting point. Of course there are implementation details > to address. > However, I took

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-03 Thread Dominik Haumann
Hi Milian, On Thu, Feb 25, 2016 at 7:22 PM, Milian Wolff wrote: > On Donnerstag, 25. Februar 2016 09:02:11 CET Thiago Macieira wrote: >> On quinta-feira, 25 de fevereiro de 2016 17:33:52 PST Cristian Adam wrote: >> > This might be a burden for some of the Qt developers (Windows ones). >> > >> > Bu

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-03 Thread Milian Wolff
On Thursday, March 3, 2016 2:05:18 PM CET Dominik Haumann wrote: > Hi Milian, > > On Thu, Feb 25, 2016 at 7:22 PM, Milian Wolff wrote: > > On Donnerstag, 25. Februar 2016 09:02:11 CET Thiago Macieira wrote: > >> On quinta-feira, 25 de fevereiro de 2016 17:33:52 PST Cristian Adam wrote: > >> > Th

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-03-04 Thread Jędrzej Nowacki
On Monday 29 of February 2016 08:38:30 Thiago Macieira wrote: > On segunda-feira, 29 de fevereiro de 2016 10:09:51 PST Jędrzej Nowacki wrote: > > On Friday 26 of February 2016 15:56:08 Thiago Macieira wrote: > > > > I.e. what problems would we get from having to install the > > > > moc files? > >