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

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

Issue 2639813002: --method-blocklist should also cover free functions. (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "gen/thing.h" 5 #include "gen/thing.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 8
9 class InterfaceOutsideOfBlink { 9 class InterfaceOutsideOfBlink {
10 public: 10 public:
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 namespace internal { 296 namespace internal {
297 297
298 class InternalClass { 298 class InternalClass {
299 public: 299 public:
300 static void Method(); 300 static void Method();
301 }; 301 };
302 302
303 } // namespace internal 303 } // namespace internal
304 304
305 // Tests for --idl-methods. See also 305 // Tests for --method-blocklist cmdline parameter.
306 // MethodsNamedAfterIdlMatcherState::SetupBlacklistForTesting method.
307 class IdlTestClass { 306 class IdlTestClass {
308 public: 307 public:
309 static int IdlTestMethodNoParams(char x) { return 123; } 308 static int IdlTestMethodNoParams(char x) { return 123; }
310 static int idlTestMethodOneParam(char x) { return 123; } 309 static int idlTestMethodOneParam(char x) { return 123; }
311 310
312 int idlTestMethodNoParams() { return 123; } 311 int idlTestMethodNoParams() { return 123; }
313 int IdlTestMethodNoParams(int x) { return 123; } 312 int IdlTestMethodNoParams(int x) { return 123; }
314 313
315 int IdlTestMethodOneParam() { return 123; } 314 int IdlTestMethodOneParam() { return 123; }
316 int idlTestMethodOneParam(int x) { return 123; } 315 int idlTestMethodOneParam(int x) { return 123; }
(...skipping 19 matching lines...) Expand all
336 class IdlTemplateClass { 335 class IdlTemplateClass {
337 public: 336 public:
338 int idlTestMethod(T x) { return 123; } 337 int idlTestMethod(T x) { return 123; }
339 }; 338 };
340 339
341 } // namespace blink 340 } // namespace blink
342 341
343 // https://crbug.com/640688 - need to rewrite method name below. 342 // https://crbug.com/640688 - need to rewrite method name below.
344 void blink::ClassDeclaredInsideBlink::MethodDefinedOutsideBlink() {} 343 void blink::ClassDeclaredInsideBlink::MethodDefinedOutsideBlink() {}
345 void blink::internal::InternalClass::Method() {} 344 void blink::internal::InternalClass::Method() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698