[cfe-users] binary operator

folkert via cfe-users cfe-users at lists.llvm.org
Wed Jul 13 00:30:14 PDT 2016


> > When iterating through the AST I encounter BinaryOperator-s, part of an
> > IfStmt.
> > My question now is: how can I find which operator it is? E.g. ==, >=,
> > etc.
> > I'm using libclang.
> >
> 
> You can call BinaryOperator::getOpcode, which will return an Opcode,
> which is a typedef of the BinaryOperatorKind enum.

This c++ version, is this from libtooling? Or which library?


Folkert van Heusden

-- 
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com



More information about the cfe-users mailing list