<div dir="ltr"><div>Hi,</div><div><br></div><div>When canonicalizing bools, the resulting value is equal to _Bool(which is a C99 thing). The tool I'm developing is turning expressions such as</div><div><br></div><div>(bool) 3.2f;<br></div><div><br></div><div>into:<br></div><div><br></div><div>static_cast<_Bool>(3.2f);</div><div><br></div><div> Is there some way I can set this to not be the case when parsing C++ files? The closest thing that seemed to make sense was to set <a href="https://clang.llvm.org/doxygen/classclang_1_1LangOptions.html">language options</a> but I don't see where I can explicitly only support C++.<br></div><div><br></div><div>Best,</div><div>Ray Zhang</div><div><br></div><div>P.S. I'm fairly close to finishing the entire tool and am hoping to contribute it into clang-tools-extra :)<br></div></div>