Identifying Classes and Functions within .cpp and .h files [message #330635] |
Wed, 06 August 2008 14:26 |
Eclipse User |
|
|
|
Originally posted by: kevin.oberg.baesystems.com
I have the active editor IEditorPart, its input IFileEditorInput, and its
file IFile. I am trying to write a plug-in that will check the file open
in the active editor for proper Doxygen commenting above each function and
class, and add it if it is not present.
I have tried getting each line and trying to determine by parsing each
line String which are functions and classes, but ultimately this is a poor
solution and is impossible to fully implement correctly. Also, I have
tried getting IMarkers but those also do not identify classes or functions.
Is there any part of the file that will identify to me where (via line
number or position from start of file) the classes or functions are
declared or defined for .cpp and .h files? There must be something that
identifies these because their syntax coloring is properly working.
Any help or suggestions are greatly appreciated!!!
|
|
|
Powered by
FUDForum. Page generated in 0.03742 seconds