#4 support for C++ ctor, dtor and nested return type, pointer

open
Jens Lorenz
5
2014-07-12
2008-04-10
Dennis Lim
No

I modified the rule for 'function end' in the C++ language to be as follows.

[ \t]*\(.*\)(\tconst)?

This allows functionlist to detect the 'const' at the end of a function signature appropriately.

Discussion

  • Dennis Lim
    Dennis Lim
    2008-04-10

     
    Attachments
  • Dennis Lim
    Dennis Lim
    2008-04-10

    • summary: support for C++ 'const' functions --> support for C++ ctor, dtor and nested return type, pointer
     
  • Dennis Lim
    Dennis Lim
    2008-04-10

    Logged In: YES
    user_id=117202
    Originator: YES

    scratch the previous post. Sees that wasn't the problem at all.

    I added the following to the 'method' rule for 'function begin'
    [ \t]*[a-zA-Z0-9_(::)\*]+[ \t]+
    This attempts to cater for nested return types which are pointers (e.g. ClassA::structX * getStruct( void ) )

    I also added a secondary rule for 'method' without 'function begin' and the following for the function list name
    [a-zA-Z0-9_]+[ \t]*::[ \t]*[a-zA-Z0-9_~]+

    This adds support for constructors and destructors
    File Added: FunctionListRules.xml