Re: [cfe-users] binary operator

2016-07-13 Thread Csaba Raduly via cfe-users
On Wed, Jul 13, 2016 at 9:30 AM, folkert wrote: >> > 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,

Re: [cfe-users] binary operator

2016-07-13 Thread folkert via cfe-users
> > 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 th

Re: [cfe-users] binary operator

2016-07-12 Thread folkert via cfe-users
Hi, > > 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 t

Re: [cfe-users] binary operator

2016-07-12 Thread Csaba Raduly via cfe-users
Hi Folkert, On Tue, Jul 12, 2016 at 1:46 PM, folkert via cfe-users wrote: > Hi, > > 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

[cfe-users] binary operator

2016-07-12 Thread folkert via cfe-users
Hi, 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. Folkert van Heusden -- -- Phone: +31-6-4127812