Skip to main content

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

Ah, yes, forgot about those, my head is in C99 land.


Mike Kucera
Software Developer
IBM CDT Team, Toronto
mkucera@xxxxxxxxxx



                                                                           
             Andrew                                                        
             Niefer/Ottawa/IBM                                             
             @IBMCA                                                     To 
             Sent by:                  "CDT General developers list."      
             cdt-dev-bounces@e         <cdt-dev@xxxxxxxxxxx>               
             clipse.org                                                 cc 
                                                                           
                                                                   Subject 
             06/08/2007 11:00          Re: [cdt-dev] doubt                 
             AM                                                            
                                                                           
                                                                           
             Please respond to                                             
               "CDT General                                                
             developers list."                                             
             <cdt-dev@eclipse.                                             
                   org>                                                    
                                                                           
                                                                           





< and > are also used in static_cast, reinterpret_cast and const_cast.
And extensively in templates, where bracket matching would actually be
useful.

-Andrew

                                                                           
 Mike Kucera/Toronto/IBM@IBMCA                                             
 Sent by:                                                                  
 cdt-dev-bounces@xxxxxxxxxxx                                            To 
                                                 "CDT General developers   
                                                 list."                    
 06/08/2007 10:28 AM                             <cdt-dev@xxxxxxxxxxx>     
                                                                        cc 
                                                                           
          Please respond to                                        Subject 
   "CDT General developers list."                Re: [cdt-dev] doubt       
        <cdt-dev@xxxxxxxxxxx>                                              
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





The only place < and > are used as brackets is in #include directives.
Since the purpose of the matching brackets feature is to make it easy to
match brackets that may be many lines apart and may be nested, and since
#include directives are single line and don't allow nesting, the feature
seems kind of pointless in this case. I would say the best approach is to
just not match angle brackets at all.

Mike Kucera
Software Developer
IBM CDT Team, Toronto
mkucera@xxxxxxxxxx



            Chris
            Recoskie/Toronto/
            IBM@IBMCA                                                  To
            Sent by:                  "CDT General developers list."
            cdt-dev-bounces@e         <cdt-dev@xxxxxxxxxxx>
            clipse.org                                                 cc

                                                                  Subject
            06/08/2007 10:09          Re: [cdt-dev] doubt
            AM


            Please respond to
              "CDT General
            developers list."
            <cdt-dev@eclipse.
                  org>






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


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev




Back to the top