D6346: Extend ClangClassHelper to offer both operator== & operator!= operators
Friedrich W. H. Kossebau
noreply at phabricator.kde.org
Thu Jun 22 21:15:44 UTC 2017
kossebau created this revision.
Restricted Application added a subscriber: kdevelop-devel.
REVISION SUMMARY
I do not know a best practice rule which recommends this.
But when I add some operator== implementation, I also add an
operator!= implementation to a class.
Because if users of the class API need the first, chance is
other users might want the inverse for other logic.
So I would find it handy to have codegen allow me to generate both
signatures.
REPOSITORY
R32 KDevelop
BRANCH
addunequaloperator
REVISION DETAIL
https://phabricator.kde.org/D6346
AFFECTED FILES
languages/clang/codegen/clangclasshelper.cpp
To: kossebau, #kdevelop
Cc: kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170622/e6d8c4c5/attachment.html>
More information about the KDevelop-devel
mailing list