[LLVMdev] anonymous namespaces in headers
clattner at apple.com
Wed Jul 20 22:50:43 PDT 2011
On Jul 20, 2011, at 9:56 AM, David Blaikie wrote:
> In http://llvm.org/docs/doxygen/html/STLExtras_8h_source.html the
> 'tier' is implemented in an anonymous namespace inside a header. Is
> there any reason/benefit to this?
> Does it trick some amount of namespace lookup because I don't think it
> hides the name at all (llvm::tier should still be valid)?
No there is no benefit to this, I'll remove it. This dates back to r9723 :)
More information about the llvm-dev