Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: tools/clang/rewrite_to_chrome_style/tests/operators-original.cc

Issue 1612223002: rewrite_to_chrome_style: Handle non-method overloaded operators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rewrite-operators: commentfix Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/clang/rewrite_to_chrome_style/tests/operators-expected.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 namespace blink {
6
7 struct Op {
8 bool operator==(const Op&) { return true; }
9 };
10
11 struct Op2 {};
12
13 inline bool operator==(const Op2&, const Op2) {
14 return true;
15 }
16
17 } // namespace
18
19 void G() {
20 blink::Op a, b;
21 bool c = a == b;
22
23 blink::Op2 a2, b2;
24 bool c2 = a2 == b2;
25 }
OLDNEW
« no previous file with comments | « tools/clang/rewrite_to_chrome_style/tests/operators-expected.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698