<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Note that it is being called with the ‘->’ operator.  QualType’s dereference operator returns a Type*.  SO, ‘isFunctionPointerType’ is a part of the Type class:
 https://clang.llvm.org/doxygen/classclang_1_1Type.html<o:p></o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></a></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> cfe-dev [mailto:cfe-dev-bounces@lists.llvm.org]
<b>On Behalf Of </b>Mustakimur Rahman Khandaker via cfe-dev<br>
<b>Sent:</b> Wednesday, September 12, 2018 7:33 AM<br>
<b>To:</b> Sam McCall <sammccall@google.com>; cfe-dev@lists.llvm.org<br>
<b>Subject:</b> Re: [cfe-dev] [clangd-dev] How to identify a Clang QualType is a function pointer?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Thanks, it works. I wonder why this funtion is not listed under document:
<a href="https://link.getmailspring.com/link/1536762231.local-91091396-b610-v1.4.2-f587b7b7@getmailspring.com/0?redirect=https%3A%2F%2Fclang.llvm.org%2Fdoxygen%2Fclassclang_1_1QualType.html&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D" title="https://clang.llvm.org/doxygen/classclang_1_1QualType.html">
https://clang.llvm.org/doxygen/classclang_1_1QualType.html</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">is that because it is inline?<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">Sent from <a href="https://link.getmailspring.com/link/1536762231.local-91091396-b610-v1.4.2-f587b7b7@getmailspring.com/1?redirect=https%3A%2F%2Fgetmailspring.com%2F&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D">
Mailspring</a>, the best free email app for work<o:p></o:p></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal">On Sep 12 2018, at 10:12 am, Sam McCall via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">Doh, of course I meant cfe-dev.<o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">On Wed, Sep 12, 2018 at 4:04 PM Sam McCall <<a href="https://link.getmailspring.com/link/1536762231.local-91091396-b610-v1.4.2-f587b7b7@getmailspring.com/2?redirect=mailto%3Asammccall%40google.com&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D" title="mailto:sammccall@google.com">sammccall@google.com</a>>
 wrote:<o:p></o:p></p>
</div>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">(bcc clangd-dev, I think you want clang-dev)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">QType->isFunctionPointerType()?<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">On Wed, Sep 12, 2018 at 3:55 PM Mustakimur Rahman Khandaker (Mustakim) via clangd-dev <<a href="https://link.getmailspring.com/link/1536762231.local-91091396-b610-v1.4.2-f587b7b7@getmailspring.com/3?redirect=mailto%3Aclangd-dev%40lists.llvm.org&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D" title="mailto:clangd-dev@lists.llvm.org">clangd-dev@lists.llvm.org</a>>
 wrote:<o:p></o:p></p>
</div>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Hi<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729">I am trying to identify a function pointer connected to any expression. I am working in Clang code. Assume, I know the QualType of the value, and now want to know
 if the value is originally a function pointer type, not any other. Like I want to distinguish between </span><code><i><span style="font-size:10.0pt">void (*)()</span></i></code><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729"> and </span><code><i><span style="font-size:10.0pt">int
 *</span></i></code><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729">. Can anyone suggest what functionality (standard, not want to use
</span><span style="font-family:"Courier New";color:#795E26">getAsString</span><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729"> and parse it) I can use?</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#242729">................</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Mustakim<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><img border="0" id="_x0000_i1025" src="https://link.getmailspring.com/open/1536760310.local-3bd25447-952e-v1.4.2-f587b7b7@getmailspring.com?recipient=Y2xhbmdkLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D" alt="Open Tracking"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">_______________________________________________<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">clangd-dev mailing list<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://link.getmailspring.com/link/1536762231.local-91091396-b610-v1.4.2-f587b7b7@getmailspring.com/4?redirect=mailto%3Aclangd-dev%40lists.llvm.org&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D" title="mailto:clangd-dev@lists.llvm.org">clangd-dev@lists.llvm.org</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://link.getmailspring.com/link/1536762231.local-91091396-b610-v1.4.2-f587b7b7@getmailspring.com/5?redirect=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_clangd-2Ddev%26d%3DDwMFaQ%26c%3DMNHwOqQ8N1u91SoMLfIblwuGXKgp50OPUXjl8uRAbak%26r%3DJKwm4etMSQMsahOzPNr2LefnHNJnFri63zemZ-7B3PI%26m%3DjN7977-HIZNE6o-kw3kfBBPvXMF8q7Uxyk46NtS-LEE%26s%3DD9-vAg1cfAAFNMAkwwtoQEOv5P2BipJZCxg8tBkXJyE%26e%3D&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D" title="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_clangd-2Ddev&d=DwMFaQ&c=MNHwOqQ8N1u91SoMLfIblwuGXKgp50OPUXjl8uRAbak&r=JKwm4etMSQMsahOzPNr2LefnHNJnFri63zemZ-7B3PI&m=jN7977-HIZNE6o-kw3kfBBPvXMF8q7Uxyk46NtS-LEE&s">http://lists.llvm.org/cgi-bin/mailman/listinfo/clangd-dev</a><o:p></o:p></p>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
<div>
<p class="MsoNormal">_______________________________________________<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">cfe-dev mailing list<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_cfe-2Ddev&d=DwIGaQ&c=MNHwOqQ8N1u91SoMLfIblwuGXKgp50OPUXjl8uRAbak&r=JKwm4etMSQMsahOzPNr2LefnHNJnFri63zemZ-7B3PI&m=jN7977-HIZNE6o-kw3kfBBPvXMF8q7Uxyk46NtS-LEE&s=q3JEP9ZvWBPJniK8ABSvi56jILF3cNWAFzYkF9mXKrI&e">https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_cfe-2Ddev&d=DwIGaQ&c=MNHwOqQ8N1u91SoMLfIblwuGXKgp50OPUXjl8uRAbak&r=JKwm4etMSQMsahOzPNr2LefnHNJnFri63zemZ-7B3PI&m=jN7977-HIZNE6o-kw3kfBBPvXMF8q7Uxyk46NtS-LEE&s=q3JEP9ZvWBPJniK8ABSvi56jILF3cNWAFzYkF9mXKrI&e</a>=<o:p></o:p></p>
</div>
</div>
</blockquote>
<p class="MsoNormal"><img border="0" id="_x0000_i1026" src="https://link.getmailspring.com/open/1536762231.local-91091396-b610-v1.4.2-f587b7b7@getmailspring.com?recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D" alt="Open Tracking"><o:p></o:p></p>
</div>
</body>
</html>