forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnamespaces-expected.cc
55 lines (44 loc) · 1.01 KB
/
namespaces-expected.cc
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
51
52
53
54
55
// 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
// blink::protocol namespace is blacklisted.
namespace protocol {
void foo();
} // namespace protocol
} // 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();
}