<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, May 20, 2014 at 8:06 AM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yep - we shouldn't be putting anonymous namespaces in headers,<br>
generally. If you have some elements of the header that aren't meant<br>
to be exposed to users, but need to be in the header for whatever<br>
reason, the usual approach is to put them in an "impl" or "private"<br>
namespace (you could look around in the LLVM project to see what the<br>
most common name/convention is there - I'm not sure off-hand)</blockquote><div><br></div><div>That is true. The anonymous namespace in the header doesn't make sense. I'll rename it.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5">
On Tue, May 20, 2014 at 3:56 AM, Simon Atanasyan <<a href="mailto:simon@atanasyan.com">simon@atanasyan.com</a>> wrote:<br>
> Hi Rui,<br>
><br>
> On Fri, May 9, 2014 at 2:30 AM, Rui Ueyama <<a href="mailto:ruiu@google.com">ruiu@google.com</a>> wrote:<br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=208365&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=208365&view=rev</a><br>
><br>
> [...]<br>
><br>
>> +class VirtualArchiveLibraryFile : public ArchiveLibraryFile {<br>
>> +public:<br>
>> +  VirtualArchiveLibraryFile(StringRef filename)<br>
>> +      : ArchiveLibraryFile(filename) {}<br>
><br>
> Just curious, what intention is to put VirtualArchiveLibraryFile into<br>
> the anonymous namespace and later use it as a base class for globally<br>
> visible class LocallyImportedSymbolFile? By the way this triggers the<br>
> following gcc warning:<br>
><br>
> [[<br>
> LinkerGeneratedSymbolFile.h:143:7: warning:<br>
> ‘lld::pecoff::LocallyImportedSymbolFile’ has a field<br>
> ‘lld::pecoff::LocallyImportedSymbolFile::<anonymous>’ whose type uses<br>
> the anonymous namespace ...<br>
> ]]<br>
><br>
> [...]<br>
><br>
>> -class LocallyImportedSymbolFile : public ArchiveLibraryFile {<br>
>> +class LocallyImportedSymbolFile : public VirtualArchiveLibraryFile {<br>
><br>
> --<br>
> Simon<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div></div>