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

Side by Side Diff: tools/clang/rewrite_to_chrome_style/tests/template-expected.cc

Issue 2544933002: Handling ElaboratedType and InjectedClassNameType in blink_qual_type_matcher. (Closed)
Patch Set: Removed unnecessary debugging output. Ooops. Created 4 years 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <type_traits> 5 #include <type_traits>
6 6
7 namespace not_blink { 7 namespace not_blink {
8 8
9 void function(int x) {} 9 void function(int x) {}
10 10
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 class Derived : public Base { 273 class Derived : public Base {
274 public: 274 public:
275 void virtualMethod() override { 275 void virtualMethod() override {
276 this->Class::VirtualMethodInBlink(); 276 this->Class::VirtualMethodInBlink();
277 this->Base::virtualMethod(); 277 this->Base::virtualMethod();
278 } 278 }
279 }; 279 };
280 280
281 } // namespace cxx_dependent_scope_member_expr_testing 281 } // namespace cxx_dependent_scope_member_expr_testing
282 282
283 namespace blink_methods_called_from_mojo_traits_are_not_rewritten {
284
285 template <typename V>
286 struct MapTraits;
287
288 template <typename V>
289 struct MapTraits<blink::test_unnamed_arg::Class<V>> {
290 static void SetToEmpty(blink::test_unnamed_arg::Class<V>* output) {
291 // Need to rewrite |f| to |F| below (because this method name
292 // does get rewritten when processing blink::test_unnamed_arg::Class).
293 // See also https://crbug.com/670434.
294 output->F(123);
295 }
296 };
297
298 } // namespace blink_methods_called_from_mojo_traits_are_not_rewritten
299
283 } // namespace not_blink 300 } // namespace not_blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698