<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 26 June 2017 at 09:25, Zbigniew Sarbinowski via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-3382519631809357041socmaildefaultfont" dir="ltr" style="font-family:Courier New,Courier,monospace;font-size:10.5pt"><div dir="ltr"> </div>
<div dir="ltr">Hello,</div>
<div dir="ltr"> </div>
<div dir="ltr">I'm trying to fix, redesign, current implementation of the following pragma.</div>
<div dir="ltr"> </div>
<div dir="ltr">#pragma map(identifier, "new name")</div>
<div dir="ltr"> </div>
<div dir="ltr">The pragma can appear before or after 'identifier' is defined.</div>
<div dir="ltr">The current implementation works only on simple identifiers in global scope. </div>
<div dir="ltr"> </div>
<div dir="ltr">I need to fix the cases when 'identifier' is a nested specifier. For example:</div>
<div dir="ltr">::i or ns::i, where ns is a namespace or a class. The 'identifier' can be an object or function with external linkage. It can also be a function with  optionally specified parameters to distinguish overloaded functions.</div>
<div dir="ltr"> </div>
<div dir="ltr">The 'identifier' should be lookup first at the point of the pragma and if not resolved once again at the end of compilation and let the back-end know its new name. </div>
<div dir="ltr"> </div>
<div dir="ltr">Are there any similar pragmas which can help me out? Any advice you can offer is appreciated.</div></div></blockquote><div><br></div><div>This sounds quite similar to the existing "#pragma redefine_extname" (except for the C++ support); you could look at that for inspiration.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-3382519631809357041socmaildefaultfont" dir="ltr" style="font-family:Courier New,Courier,monospace;font-size:10.5pt"><div dir="ltr">Regards, ______________________________<wbr>________<br>Zbigniew Sarbinowski (Zibi) C++ FE development<br>IBM z Systems Software, IBM Systems Unit<br>8200 Warden Ave. Markham ON, L6G 1C7<br>C2/712/8200/MKM Tel: <a href="tel:(905)%20413-6071" value="+19054136071" target="_blank">905-413-6071</a></div></div><br>

<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div></div>