• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
re-indent bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re-indent bug


  • Subject: re-indent bug
  • From: "Roger Persson" <email@hidden>
  • Date: Sat, 7 Oct 2006 15:27:12 +0200

Hi,

I just tried re-indenting this piece of code containing a c-styled
commed (/**/):

/*1. Save this snippet as "reindent.c",
 2. select all text, and
 3. re-indent it via Format menu */
BOOL function(int value)
{
switch (something) {
 case A:
  result = findResult(parent,
      NULL); /* remove this */
  break;
 case B:
  break;
}
}

The comment "remove this" causes a "wild and crazy" behaviour for
reindent. If you remove the comment, reindent works as normal.

Note that the behaviour is other if you use c++ styled comments (//).
_______________________________________________
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


  • Follow-Ups:
    • Re: re-indent bug
      • From: "Roger Persson" <email@hidden>
    • Re: re-indent bug
      • From: David A Rowland <email@hidden>
  • Prev by Date: Re: invalid conversion from void* to void**
  • Next by Date: Re: re-indent bug
  • Previous by thread: Re: invalid conversion from void* to void**
  • Next by thread: Re: re-indent bug
  • Index(es):
    • Date
    • Thread