[PATCH] D81142: [MsgPack] Added a convenience operator
Dineshkumar Bhaskaran via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 4 04:50:38 PDT 2020
dineshkb-amd updated this revision to Diff 268422.
dineshkb-amd added a comment.
Ran clang-format
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81142/new/
https://reviews.llvm.org/D81142
Files:
llvm/include/llvm/BinaryFormat/MsgPackDocument.h
Index: llvm/include/llvm/BinaryFormat/MsgPackDocument.h
===================================================================
--- llvm/include/llvm/BinaryFormat/MsgPackDocument.h
+++ llvm/include/llvm/BinaryFormat/MsgPackDocument.h
@@ -181,6 +181,11 @@
return !(Lhs < Rhs) && !(Rhs < Lhs);
}
+ /// Inequality operator
+ friend bool operator!=(const DocNode &Lhs, const DocNode &Rhs) {
+ return !(Lhs == Rhs);
+ }
+
/// Convert this node to a string, assuming it is scalar.
std::string toString() const;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81142.268422.patch
Type: text/x-patch
Size: 525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200604/762246fc/attachment.bin>
More information about the llvm-commits
mailing list