Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] doubt

Operators do not get bindings because there is no name to bind them to.
Bindings link together all the declarations, definitions, and references of
a named entity in the code.

You can check the AST at that offset... there will be an IASTExpression
there.

===========================

Chris Recoskie
Team Lead, IBM CDT Team
IBM Toronto
http://www.eclipse.org/cdt



                                                                           
             Ravi S Konidena                                               
             <rkoniden@xxxxxx.                                             
             com>                                                       To 
             Sent by:                  cdt-dev@xxxxxxxxxxx                 
             cdt-dev-bounces@e                                          cc 
             clipse.org                                                    
                                                                   Subject 
                                       [cdt-dev] doubt                     
             08/06/2007 02:01                                              
             AM                                                            
                                                                           
                                                                           
             Please respond to                                             
               "CDT General                                                
             developers list."                                             
             <cdt-dev@eclipse.                                             
                   org>                                                    
                                                                           
                                                                           





Hi,

Is there a way to find whether the symbol present at a given offset in a
file
is an operator. My guess is there will be some api which will return the
binding
given the offset in the file. More specifically, my problem is
I want to find whether '<' is used as a operator (lessthan, <<)
or as a angular bracket( eg., <iostream.h>). This is for the bug
110222. Please let me know the solution for it.


Thanks,
Ravi
Extn: 2751
Mobile:9886432301_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev




Back to the top