• 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 Index with "*.hh" Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code Index with "*.hh" Files


  • Subject: Re: Code Index with "*.hh" Files
  • From: Chris Espinosa <email@hidden>
  • Date: Sat, 1 Mar 2008 16:51:03 -0800


On Mar 1, 2008, at 4:15 PM, Colin A. Smith wrote:

I have an external build system project that is entirely C++. All of the
header files use the *.hh extension. Xcode displays the file types correctly
for those header files and the "Go to Counterpart" switches between the
header and the corresponding *.cc file. Very annoyingly, the following
features do work for items defined in *.cc files but not for items defined
in *.hh files:


- Code completion
- Class browser
- Project symbols

I'm 99.9% sure that *.hh files are not being indexed, as all the behaviors
described above appear to depend on that index:


http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUser
Guide/Contents/Resources/en.lproj/01_70_tasks_navigate/ chapter_10_section_3.
html


Is it possible to configure Xcode to index *.hh files? If not, can this
please be added to a release in the near future?


A related question was previously posted but never answered:

http://lists.apple.com/archives/xcode-users/2004/Aug/msg00439.html

I'd really appreciate an answer. Thanks!

Are your .hh files ever #included by a compiled file? Xcode doesn't index all files in the project comprehensively, it does a "rooted" walk from the source files . In a native project this starts with all the sources in the Compile Source Files build phase and extends to the entire #include chain of all files referenced by those; in an External Build project Xcode might not even be able to tell what sources will be compiled at all (as the external makefile determines the file inclusion and dependencies).


As a workaround, you could create a dummy target with one .cp file that #includes all your .hh files, and then they should appear in the project index.

Chris
_______________________________________________
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: Code Index with "*.hh" Files
      • From: "Colin A. Smith" <email@hidden>
References: 
 >Code Index with "*.hh" Files (From: "Colin A. Smith" <email@hidden>)

  • Prev by Date: Re: Code Index with "*.hh" Files
  • Next by Date: Advantages to using Xcode 3 format over Xcode 2.4?
  • Previous by thread: Re: Code Index with "*.hh" Files
  • Next by thread: Re: Code Index with "*.hh" Files
  • Index(es):
    • Date
    • Thread