Re: prototypes in function popup menu
Re: prototypes in function popup menu
- Subject: Re: prototypes in function popup menu
- From: Heath Raftery <email@hidden>
- Date: Fri, 11 Jun 2004 09:37:55 +1000
Markian,
On 11/06/2004, at 2:48 AM, Markian Hlynka wrote:
On Jun 10, 2004, at 7:22, Heath Raftery wrote:
Hi Markian,
On 10/06/2004, at 10:29 AM, Markian Hlynka wrote:
why don't function prototypes show up in my function popup menu in
xcode?
They do.
ie, I have a .h file with:
I copied and pasted your code into a new .h file and everything
appeared in the menu as you expect. The defined function appeared in
a plain typeface, while the prototypes appeared in italics.
what?? this makes no sense. I have done 2 things;
1. used my code file with #pragmas. actually, a copy of it. it looks
like this:
<Picture 1.pdf>
Notice that it completely lacks function prototypes except for the
inline function CalculateElapsedTime.
Indeed it does! Using your second code sample I get the same results as
you, and it certainly does look broken. In particular, the parsing
problem starts with the operators. You really aren't supposed to see
all those levels of indentation in the menu. I tried commenting out all
the operators, and the menu started working well again. But it gets all
out of whack once you put one operator in.
So I'd submit a bug (using your sample code - try to get minimal code
which reproduces the problem) *IF* that code is corrent C/C++ syntax. I
didn't think you could have operators for structs, only for classes.
And I thought references to the struct name (not the typedef name) had
to have the struct keyword. Does this code actually compile? If it is
all syntactically correct then I think you've definitely found a bug.
Heath
--
___________________________________________________
| Heath Raftery |
| email@hidden |
| *640KB of RAM ought to be enough for anybody* |
| - Bill Gates |
| _\|/_ |
|____________________________________m(. .)m________|
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.