This website requires JavaScript.
Explore
Help
Sign In
maxjhandsome
/
llvm-project
forked from
OSchip/llvm-project
Watch
1
Star
0
Fork
You've already forked llvm-project
0
Code
Issues
Pull Requests
Packages
Releases
Wiki
Activity
f5f4d2fd2e
llvm-project
/
clang
/
test
/
Modules
/
Inputs
/
namespaces-top.h
15 lines
121 B
C
Raw
Normal View
History
Unescape
Escape
Switch NamespaceDecl from its own hand-rolled redeclaration chain over to Redeclarable<NamespaceDecl>, so that we benefit from the improveed redeclaration deserialization and merging logic provided by Redeclarable<T>. Otherwise, no functionality change. As a drive-by fix, collapse the "inline" bit into the low bit of the original namespace/anonymous namespace, saving 8 bytes per NamespaceDecl on x86_64. llvm-svn: 147729
2012-01-07 17:11:48 +08:00
namespace
N1
{
int
&
f
(
int
)
;
}
namespace
N2
{
int
&
f
(
int
)
;
}
namespace
N3
{
int
&
f
(
int
)
;
}
When deserializing an anonymous namespace from a module, do not attach the anonymous namespace to its parent. Semantically, this means that the anonymous namespaces defined in one module are distinct from the anonymous namespaces defined in another module. llvm-svn: 147782
2012-01-10 02:07:24 +08:00
namespace
N12
{
}