<div dir="ltr">Dear Keane,<div> I am running through CUDA code. The AST nodes as far as I can see is more like C++ like CXXRecordDecl and so on. I do pass C++ standard flag to the tool.</div><div><br></div><div>Regrads,</div><div>Pradeep</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 23, 2019 at 8:21 PM Keane, Erich <<a href="mailto:erich.keane@intel.com">erich.keane@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_-5877518628262610997WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Are you compiling as C, or c++? C++ should give you “bool”, since it is the type, however if you’re using C, “bool” is likely typedef’ed to “_Bool”, so that’s
the type you’re getting.<u></u><u></u></span></p>
<p class="MsoNormal"><a name="m_-5877518628262610997__MailEndCompose"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></a></p>
<p class="MsoNormal"><a name="m_-5877518628262610997______replyseparator"></a><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> cfe-dev [mailto:<a href="mailto:cfe-dev-bounces@lists.llvm.org" target="_blank">cfe-dev-bounces@lists.llvm.org</a>]
<b>On Behalf Of </b>Pradeep Kumar via cfe-dev<br>
<b>Sent:</b> Tuesday, July 23, 2019 7:47 AM<br>
<b>To:</b> cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>><br>
<b>Subject:</b> [cfe-dev] bool type is represented as "_Bool" in the AST<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Dear Clang-developer community,<u></u><u></u></p>
<div>
<p class="MsoNormal"> I am using libTooling to query information about the source. While querying the string representation of the bool type, I get "_Bool" string. I got the string from QualType::getAsString(). Should I be using another function to query
the actual type or is it an expected behavior? <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"> I don't get _Bool when dumping the ast except when I dump the QualType Node.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">clang Version: 9.0<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">LLVM Version: 9.0<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Pradeep<u></u><u></u></p>
</div>
</div>
</div>
</div>
</blockquote></div>