[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    Re: [Kde-bindings] smokegen and mf_explicit flag
From:       Ashley Winters <jahqueel () yahoo ! com>
Date:       2015-10-09 19:27:14
Message-ID: 1444418834.63116.YahooMailIosMobile () web165305 ! mail ! gq1 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (text/html)]

<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top"><div \
id='yahoo__compose_area' style="background-color:white; display:block; \
font-family:HelveticaNeue-Regular,Helvetica;">Looks like those constructors clang \
found had default parameters? It could be that smokegen was avoiding the explicit \
flag for the zero-arg version of them.<div><br></div><div>- Ash</div></div><div \
id='yahoo__original_message' class='yQTDBase'><br><blockquote style="margin:0 0 0 \
.8ex; border-left:1px #ccc solid; padding-left:1ex; ">On Oct 9, 2015, 10:58:19 AM, \
Chris Burel<chrisburel@gmail.com> wrote:<div dir="ltr"><div><div><div>Hey \
everyone,<br></div>I've been working on a replacement for the existing smokegen tool, \
that is based on clang's AST instead of the existing parser from kdevelop.  I'm \
currently trying to get it to generate the smokedata.cpp file for \
qtcore.<br><br></div>One thing I'm noticing is that the mf_explicit flag doesn't seem \
to be correctly  applied to all explicit constructors.  It only shows up for 5 of \
them:<br><br>QBool::QBool(bool)<br>QLatin1Char::QLatin1Char(char)<br>QLatin1String::QLatin1String(const \
char*)<br>QTextDecoder::QTextDecoder(const \
QTextCodec*)<br>QTextEncoder::QTextEncoder(const QTextCodec*)<br><br></div>Clang's \
parser turns up a lot more.  For \
example:<br><div><div>QAbstractEventDispatcher::QAbstractEventDispatcher(QObject \
*)<br>QAbstractItemModel::QAbstractItemModel(QObject \
*)<br>QAbstractListModel::QAbstractListModel(QObject *)<br><br></div><div>Looking at \
the headers for these classes, these constructors are indeed marked "explicit".  Is \
this an error in the existing parser, or does the mf_explicit flag mean more than \
just "the constructor was declared with the explicit \
keyword"?<br><br></div><div>-Chris<br></div><div><br></div></div></div><div \
id="msgSandbox_AGd2w0MAABFuVhgAOwt9aPOzKIo_2" class="msgSandbox" style="padding: \
1.5em 0.5em 0.5em 1.2em; word-wrap:  \
break-word;">_______________________________________________<br>Kde-bindings mailing \
list<br><a ymailto="mailto:Kde-bindings@kde.org" \
href="javascript:return">Kde-bindings@kde.org</a><br><a \
href="https://mail.kde.org/mailman/listinfo/kde-bindings" \
target="_blank">https://mail.kde.org/mailman/listinfo/kde-bindings</a><br></div><div></div></blockquote></div></html></td></tr></table>



[Attachment #3 (text/plain)]

_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic