[Qt-creator] Any way to make Creator play nice with an identifier called "emit"?

Orgad Shaneh orgads at gmail.com
Sun Feb 15 19:13:41 CET 2015


On Sun, Feb 15, 2015 at 7:48 PM, Nikos Chantziaras <realnc at gmail.com> wrote:

> A library I'm using has an "emit" identifier for a function. Creator
> gets horribly confused by this, redlines everything and does not
> recognize any declarations or definitions that depend on that function.
> Example:
>
>    QGst::PadPtr vidpad(QGlib::emit<QGst::PadPtr>(fPipeline,
>                        "get-video-pad", 0));
>
> Any way I can tell Creator that "emit" here is not what it thinks it is?
> Defining QT_NO_KEYWORDS doesn't help. Nor does #undef emit do the trick
> (those only solve the compilation issue; Creator doesn't seem impressed
> by either of those.)
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>


Well, that is QTCREATORBUG-8007
<https://bugreports.qt.io/browse/QTCREATORBUG-8007>. See Nikolai's comments
for my proposed wip change <https://codereview.qt-project.org/72481>.

I tried to work on this recently, but didn't find the time. Feel free to
take over :)

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20150215/26e819f4/attachment.html>


More information about the Qt-creator mailing list