<br><br><div class="gmail_quote">Le 10 avril 2012 22:15, Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>></span> a écrit :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
On Apr 7, 2012, at 1:54 PM, Nikola Smiljanic <<a href="mailto:popizdeh@gmail.com">popizdeh@gmail.com</a>> wrote:<br>
<br>
> Now with ref-qualifier support :)<br>
><br>
> Note that -std=c++11 was added to the test file. I think this<br>
> shouldn't break anything, right (this is still a valid c++03 test)?<br>
</div></div>> <pretty_function.txt><br>
<br>
<br>
I've committed this as r154430, thanks!<br>
<br>
        - Doug<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br>Hello,<br><br>I have a question related to __PRETTY_FUNCTION__: how to get a "plain" version of the function name ?<br><br>For logging, I'd really like to be able to automatically insert the function name (class name and namespace names are bonus but not necessary). For file name and line number it is easy, however __PRETTY_FUNCTION__ is just too verbose to be used systematically (in template cases it's usually twice as long as the logging message itself...).<br>
<br>Are there other macros available on gcc / Clang with a terser output ?<br><br>Regards.<br>-- Matthieu<br>