[cfe-dev] convert conditional expression to string

Kihong Heo via cfe-dev cfe-dev at lists.llvm.org
Sat Dec 1 21:36:11 PST 2018


Hi all,

How can I get string representations of conditional expressions of IfStmt?
The problem is as follows:
For example;
=============
/* source code */
if( x < 10) …
=============

“IS->getCond()->getSourceRange()” represents only “x <“. It seems quite strange.

Thanks,
Kihong


More information about the cfe-dev mailing list