Timm =?utf-8?q?Bäder?= <[email protected]>,
Timm =?utf-8?q?Bäder?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


================
@@ -47,6 +47,42 @@ static constexpr raw_ostream::Colors CommentColor = 
raw_ostream::YELLOW;
 static constexpr raw_ostream::Colors LiteralColor = raw_ostream::GREEN;
 static constexpr raw_ostream::Colors KeywordColor = raw_ostream::BLUE;
 
+class ColumnsOrBytes {
+public:
+  int V = 0;
+  ColumnsOrBytes(int V) : V(V) {}
+  bool isValid() const { return V != -1; }
+
+  bool operator>(ColumnsOrBytes O) { return V > O.V; }
+  bool operator<(ColumnsOrBytes O) { return V < O.V; }
+  bool operator<=(ColumnsOrBytes B) { return V <= B.V; }
+  bool operator!=(ColumnsOrBytes C) { return C.V != V; }
----------------
zwuis wrote:

Missing `const` qualifiers? Ditto below (`operator+` and `operator-`).

https://github.com/llvm/llvm-project/pull/165541
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to