[Development] QtCS2019 Notes: Clang-based cpp parser for lupdate

André Pönitz apoenitz at t-online.de
Thu Nov 21 20:23:46 CET 2019


On Thu, Nov 21, 2019 at 07:48:41PM +0100, Oswald Buddenhagen wrote:
> On Thu, Nov 21, 2019 at 04:38:28PM +0000, Joerg Bornemann wrote:
> > There is the ongoing effort to replace the old outdated parser with a
> > clang, similar to what's been done in qdoc. The corresponding JIRA
> > issue is QTBUG-71835.
> > 
> a more radical and much simpler approach would be switching to gettext
> (actually, or at least in fundamental functionality) - that doesn't need a
> whole c++ parser to do a sensible job.
> 
> oh, wait, that topic ain't new ... ;)

I wasn't aware of a related discussion, and I actually think this could
be a way forward.

The most prominent difference is the (usually) per-class automatic context
which I always found too clever to be sensible, and that's effectively
also the only reason to need a C++ parser.

Andre'


More information about the Development mailing list