• 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: Code sense with C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code sense with C++


  • Subject: Re: Code sense with C++
  • From: Michael Rice <email@hidden>
  • Date: Mon, 4 Feb 2008 19:32:15 -0600

I don't think you're doing anything wrong - or if you are, then everyone is doing the same wrong thing.

The codesense does not work well (at all) with any of my namespace's. I think the codesense is independent of the syntax highlighting. Being able to parse for syntax is different than lexing the code to build a symbol table.

On the plus side, Xcode 3 does a *much* better job than Xcode 2, which consistently crashed with codesense enabled. Hopefully it will continue to improve.

Michael

On Feb 4, 2008, at 4:20 PM, Ivan Galic wrote:

Hello!

It's known that codesense doesn't work well with C++, and especially that it gets confused when tried on more complex language constructs...
However, I've noticed that many times it can color my code well although the codesense doesn't work.
For example, we have in our namespace NightIrion a class called CMesh. When I type NightIrion:: and try to autocomplete, it says there are no completions. It doesn't help if I write a few letters, either, i.e. NightIrion::CMes and then try to complete.
What makes no sense to me is that when I write NightIrion::CMesh, it colors the CMesh as a type (and it doesn't color something that doesn't belong to the namespace, i.e. NightIrion::InvalidClass).
So obviously, it does know that CMesh is a type belonging to the given namespace, and yet the codesense doesn't know how to autocomplete it. Am I doing something wrong, and has anyone else noticed it?


Another thing is that it seems to recognize well the parts of STL, but not any 'custom' template code. Is it some kind of hack, or do I need to do something special in order for it to parse my code as it should?

Regards,
Ivan
P.S. Xcode 3.0
_______________________________________________
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
References: 
 >Code sense with C++ (From: Ivan Galic <email@hidden>)

  • Prev by Date: Header File Problem; sorry to bug this list...
  • Next by Date: Re: Creating a new project in Xcode 3.0
  • Previous by thread: Code sense with C++
  • Next by thread: Header File Problem; sorry to bug this list...
  • Index(es):
    • Date
    • Thread