• 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
Doxygen - how to avoid repeating myself?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Doxygen - how to avoid repeating myself?


  • Subject: Doxygen - how to avoid repeating myself?
  • From: Greg Guerin <email@hidden>
  • Date: Thu, 23 Jul 2009 09:16:29 -0700

Sherm Pendley wrote:

At various points in some code I'm writing, I have groups of related
methods. For doxygen, I create groups with:

/** @name GroupName */
/** @{ */
/**
    Some comments about this group of methods
*/
/** @} */

Unfortunately, if I want the group name to appear in Xcode's symbols
drop-down list, I have to repeat the group name in a #pragma:

#pragma mark GroupName

Any ideas how I might avoid having to repeat myself this way?


Write an Xcode script that takes the current selection (assume it's GroupName) and expands it into the comment template plus the pragma. Then assign a keystroke to the script and add it to Xcode's scripting menu.

  -- GG
_______________________________________________
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


  • Prev by Date: Re: PackageMaker 3.0.3 issue - can't get it to install anything.
  • Next by Date: Re: updating help-book in Xcode
  • Previous by thread: Doxygen - how to avoid repeating myself?
  • Next by thread: PackageMaker: Combining Multiple Sources in a Single Package
  • Index(es):
    • Date
    • Thread