Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Function Point Analysis (Sigh...)

  1. #1
    Intern Newbie
    Join Date
    Oct 2000
    Location
    Cov
    Posts
    36

    Function Point Analysis (Sigh...)

    Hi all.

    Could anyone point me in the direction of a app which will count functions in C++?

    The project my company is working on is about to be picked up by a major player and they want to have some basic function point specs on the code. I've written a system to parse the VB code we have but I dont even want to think about doing it for C++.

    Basically, all I need is an app that I can point at a directory and it will give me some nice stats on the CPP files in that diectory.

    Any ideas?

    Pete

  2. #2
    Intern Contributor
    Join Date
    Feb 2001
    Location
    washington, dc usa
    Posts
    87

    Re: Function Point Analysis (Sigh...)

    Are you looking for something like a text parser that will just hunt and tag functions within .cpp and .h files?

    I would suggest a simple pattern-matching routine, and in this case, I'd hide my head in shame and use MFC's CString.

    void myFunction( myArgs ) { ... }

    could be matched to %a1%s1(%a2){%s2...

    If I misunderstood the question, sorry...


    [This message has been edited by lpVoid (edited 02-05-2001).]

  3. #3
    Intern Contributor
    Join Date
    Feb 2001
    Location
    washington, dc usa
    Posts
    87

    Re: Function Point Analysis (Sigh...)

    Just remembered something....

    JavaDoc is a util for documenting Java code in the way i believe you are describing. You might want to check out the documentation for that tool and just port it to C/C++.

    Also, the Visual Studio 7 pre-beta ships with a utility that generates function documentation of source code. The nicest thing about this one is that it generates XML output. I think it was developed with C# in mind ( yuck again ), but the similarities of the two languages should make the transition easy.

    Dave

    [This message has been edited by lpVoid (edited 02-05-2001).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •