blob: da13adced7d4e97bd9385112675f01c487340179 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
namespace blink {
// Stuff in blink:: should be renamed.
void Foo();
// Stuff in nested namespaces should be renamed.
namespace nested {
void Foo();
} // namespace nested
} // namespace blink
namespace WTF {
// Stuff in WTF:: should be renamed.
void Foo();
// Stuff in nested namespaces should be renamed.
namespace nested {
void Foo();
} // namespace nested
} // namespace WTF
// Stuff outside blink:: and WTF:: should not be.
namespace other {
void foo();
namespace blink {
void foo();
} // namespace blink
namespace WTF {
void foo();
} // namespace WTF
} // namespace other
void foo();
void G() {
blink::Foo();
blink::nested::Foo();
WTF::Foo();
WTF::nested::Foo();
other::foo();
foo();
other::blink::foo();
other::WTF::foo();
}
|