<div dir="ltr"><div>Hi,<br></div><div><br></div><div>The simplest is to check whether the function is in the std:: namespace - although this only works for C++ headers.</div><div>A better method might be to get the SourceLocation of the FunctionDecl (e.g. with getLocStart()) and then use SourceManager :: isInSystemHeader and isInExternCSystemHeader.</div>
<div><br></div><div>Gabor</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/11 Rambo <span dir="ltr"><<a href="mailto:hunanlwm@sina.cn" target="_blank">hunanlwm@sina.cn</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hello,everyone<br>
I want to judge whether a function it is a C/C++ standard library function<br>
or not,that is to say,I want to distinguish a function is a C/C++ standard<br>
library function or written by users in his program.which clang API can I<br>
use? thank you!<br>
<br>
Rambo<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/to-judge-whether-a-function-it-is-a-C-C-standard-library-function-or-not-tp4032564.html" target="_blank">http://clang-developers.42468.n3.nabble.com/to-judge-whether-a-function-it-is-a-C-C-standard-library-function-or-not-tp4032564.html</a><br>
Sent from the Clang Developers mailing list archive at Nabble.com.<br>
_______________________________________________<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>
</blockquote></div><br></div>