<div dir="rtl"><div dir="ltr"><div>Basic LLVM data structures are frequently used without the llvm namespace prefix, either due to 'using namespace llvm' or from Basic/LLVM.h where we have 'using llvm::StringRef;' and would probably want 'using llvm::StringLiteral;'. </div><div>Better avoid the name clash.</div><div>ConstStringRef? StaticStringRef?</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2016-12-12 23:02 GMT+02:00 Zachary Turner via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Well, apparently clang has clang::StringLiteral in clang/AST/Expr.h<div><br></div><div>So, our options are either: Allow this name clash (obviously the namespaces don't clash, only the names) and deal with it when it's an issue (which will be limited to clang, and even then not very often), or choose a different name.</div><div><br></div><div>Thoughts?</div></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 12, 2016 at 11:53 AM Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I can. I'll whip something up today<br class="m_2087565933759595993gmail_msg"><div class="gmail_quote m_2087565933759595993gmail_msg"><div dir="ltr" class="m_2087565933759595993gmail_msg">On Fri, Dec 9, 2016 at 1:18 AM Malcolm Parsons <<a href="mailto:malcolm.parsons@gmail.com" class="m_2087565933759595993gmail_msg" target="_blank">malcolm.parsons@gmail.com</a>> wrote:<br class="m_2087565933759595993gmail_msg"></div><blockquote class="gmail_quote m_2087565933759595993gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2 December 2016 at 17:12, James Y Knight <<a href="mailto:jyknight@google.com" class="m_2087565933759595993gmail_msg" target="_blank">jyknight@google.com</a>> wrote:<br class="m_2087565933759595993gmail_msg">
> +1 from me for the StringLiteral proposal from a few messages back.<br class="m_2087565933759595993gmail_msg">
<br class="m_2087565933759595993gmail_msg">
Zachary, do you want to commit StringLiteral?<br class="m_2087565933759595993gmail_msg">
<br class="m_2087565933759595993gmail_msg">
--<br class="m_2087565933759595993gmail_msg">
Malcolm Parsons<br class="m_2087565933759595993gmail_msg">
</blockquote></div></blockquote></div>
</div></div><br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>