• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // Stuff in blink:: should be renamed.
8 void foo();
9 
10 // Stuff in nested namespaces should be renamed.
11 namespace nested {
12 void foo();
13 }  // namespace nested
14 
15 // blink::protocol namespace is blacklisted.
16 namespace protocol {
17 void foo();
18 }  // namespace protocol
19 
20 }  // namespace blink
21 
22 namespace WTF {
23 
24 // Stuff in WTF:: should be renamed.
25 void foo();
26 
27 // Stuff in nested namespaces should be renamed.
28 namespace nested {
29 void foo();
30 }  // namespace nested
31 
32 }  // namespace WTF
33 
34 // Stuff outside blink:: and WTF:: should not be.
35 namespace other {
36 void foo();
37 namespace blink {
38 void foo();
39 }  // namespace blink
40 namespace WTF {
41 void foo();
42 }  // namespace WTF
43 }  // namespace other
44 void foo();
45 
G()46 void G() {
47   blink::foo();
48   blink::nested::foo();
49   WTF::foo();
50   WTF::nested::foo();
51   other::foo();
52   foo();
53   other::blink::foo();
54   other::WTF::foo();
55 }
56