I need to decompose short circuit expressions into regular And, Or.
I’ve started doing it manually, but then I figured out that the compiler probably does the same.
Currently I identify such expressions using Stmt::hasImplicitControlFlow, and then if it’s a BinaryOperator I check if opCode is BO_LAnd or BO_LOr. Is this the right way?
Is there a way to get clang to do it for me?
Can I assist CFG class with this issue?
Thanks in advance,