Re: GCC-XML for XCode? (was: RE: is there an automated way to beautify code in xcode?)
Re: GCC-XML for XCode? (was: RE: is there an automated way to beautify code in xcode?)
- Subject: Re: GCC-XML for XCode? (was: RE: is there an automated way to beautify code in xcode?)
- From: Scott Tooker <email@hidden>
- Date: Thu, 16 Jun 2005 10:47:03 -0700
Filing an enhancement request and/or sending e-mail to xcode-
email@hidden is always the first best step.
Scott
On Jun 16, 2005, at 6:39 AM, Karan, Cem (Civ, ARL/CISD) wrote:
And the problem for this is that indent and all similar tools
require updated lex/yacc files so that they can have some level of
understanding of the files they operate on. So, Apple guys, is
there anyway that we can convince you to expose something like GCC-
XML in XCode's eventual plugin architecture? (see http://
www.gccxml.org/HTML/Index.html). I was thinking that it could be
built on Core Data, which would make writing plugins that operate
on the code directly much easier.
The reason I'm thinking along these lines is because of the number
of neat tricks you could do in your code, IF you had simple access
to the semantics. Indent is only one thing; think about searches.
You could specify that you don't want to search in comments, do
want to search only where a particular macro is defined, and only
within function definitions for all items that are of type integer,
and whose name is foo. Or you could put together a use-def chain
following plugin that will find only the particular variable,
rather than all instances of say 'i' (you defined 'i' in this
function, the use-def follower will only show where the definition
of 'i' reaches to). You could add meta-data to symbols, but hide
them in your editor (think about headerdoc or doxygen comments, but
where you don't have to see them unless you want to). You could
make code analysis tools much more easily than we do now.
I'm sure there are other neat things that you could do with it as
well (generate symbol call diagrams? Rapidly figure out what code
is portable to i386? Develop new optimization algorithms that
aren't currently available?) but I leave that to people that are
smarter than me.
Thanks,
Cem Karan
-----Original Message-----
From: Keith Ray [mailto:email@hidden]
Sent: Wed 15-Jun-05 07:56 PM
To: Karan, Cem (Civ, ARL/CISD)
Cc: email@hidden
Subject: Re: is there an automated way to beautify code in xcode?
The last time I tried to use "indent" on C/C++ code, its output was
missing many lines from the input -- trashing the source code. Very
dangerous. It probably doesn't understand Objective-C++ either.
On 6/15/05, Karan, Cem (Civ, ARL/CISD) <email@hidden> wrote:
The only thing I've found is the indent command from the command
line. I don't think its been updated to C99 or GNU99, so this may
be a dangerous command to use. After that, you just need to keep
your formatting correct on your own.
Good luck,
Cem Karan
------------------------------
Hi all,
This is my first post to this list. I have just begun C code
development with Xcode. Previously, I've used Slickedit and have come
to love their "Beautify" code feature. With a touch of a button all
your code is pretty :-)
Does Xcode have anything like this? I've be unable to find anything
in the help guides or from google.
Thanks,
Sean
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
--
C. Keith Ray
<http://homepage.mac.com/keithray/blog/index.html>
<http://homepage.mac.com/keithray/xpminifaq.html>
<http://homepage.mac.com/keithray/resume2.html>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden