You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
May I ask some help to correctly solve the following warnings ? @rfjakob, do you think you could handle them ?
Will make the build log even more clean.
Thank you very much 👍
DirNode.cpp:133:7: warning: class 'RenameOp' defines a destructor and a copy constructor but does not define a copy assignment operator, a move constructor or a move assignment operator [cppcoreguidelines-special-member-functions]
class RenameOp {
^
NullCipher.cpp:50:7: warning: class 'NullKey' defines a destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator [cppcoreguidelines-special-member-functions]
class NullKey : public AbstractCipherKey {
^
NullCipher.cpp:56:7: warning: class 'NullDestructor' defines a destructor, a copy constructor and a copy assignment operator but does not define a move constructor or a move assignment operator [cppcoreguidelines-special-member-functions]
class NullDestructor {
^
SSL_Cipher.cpp:277:7: warning: class 'SSLKey' defines a destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator [cppcoreguidelines-special-member-functions]
class SSLKey : public AbstractCipherKey {
^
XmlReader.cpp:165:7: warning: class 'XmlNode' defines a destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator [cppcoreguidelines-special-member-functions]
class XmlNode : virtual public XmlValue {
^
OK, so just one Clang-tidy warning remaining, the tiny one above.
Any thoughts perhaps @vgough@rfjakob ?
We could simply disable this warning class, but perhaps it's simple and worth making the required definitions, as a best practice ?
Undefining used operations would result in a compile error I guess
I also guess, but I'm not sure at all. Perhaps @vgough could tell us ?
Or what about the following test, adding a dummy code operation with a deleted operator, and see if compilation fails ?
Activity
benrubson commentedon Nov 2, 2017
May I ask some help to correctly solve the following warnings ?
@rfjakob, do you think you could handle them ?
Will make the build log even more clean.
Thank you very much 👍
benrubson commentedon Nov 7, 2017
OK, so just one Clang-tidy warning remaining, the tiny one above.
Any thoughts perhaps @vgough @rfjakob ?
We could simply disable this warning class, but perhaps it's simple and worth making the required definitions, as a best practice ?
Link to the rule :
http://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines-special-member-functions.html
benrubson commentedon Nov 18, 2017
OK, last thing to solve before we could I think release 1.9.3.
Thx for your help 👍
rfjakob commentedon Dec 3, 2017
I'll take a look at this.
benrubson commentedon Dec 3, 2017
Many thanks @rfjakob 👍
rfjakob commentedon Dec 3, 2017
How about undefining the other operations? Like, for RenameOp
Compiles + tests fine. Undefining used operations would result in a compile error I guess, so this would be safe?
benrubson commentedon Dec 3, 2017
I also guess, but I'm not sure at all. Perhaps @vgough could tell us ?
Or what about the following test, adding a dummy code operation with a deleted operator, and see if compilation fails ?
vgough commentedon Jan 17, 2018
Seems reasonable to me. I'd also be fine with disabling that lint check.
benrubson commentedon Jan 17, 2018
OK, thank you @vgough.
Let's then go with Jakob's idea 👍
@rfjakob, would you push your work to a new PR ?
Many thx !
rfjakob commentedon Jan 17, 2018
Sorry, the copy-pasted diff above is all I have
benrubson commentedon Jan 17, 2018
OK, I then just have pushed a change in #458 based on your idea 👍
Squashed 'vendor/github.com/google/benchmark/' changes from 5b7683f4.…