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? > >

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

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

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-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 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"? > > > >

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

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

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

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

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 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

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

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: > >>>

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: >>>

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: > >>

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

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

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

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

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

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

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: > > >

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 >

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

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

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?

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

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: > > >

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,

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

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

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

2016-02-26 Thread Curtis Mitch
> -Original Message- > From: Development [mailto:development- > bounces+mitch.curtis=theqtcompany@qt-project.org] On Behalf Of Jedrzej > Nowacki > Sent: Friday, 26 February 2016 9:44 AM > To: development@qt-project.org > Cc: Thiago Macieira ; Milian Wolff >

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). > > > > > >