Tapatalk

C++ Class scoped function member (indented function definition) in Function List

C++ Class scoped function member (indented function definition) in Function List

481
Basic UserBasic User
481

    Nov 05, 2014#1

    Hi,

    Before I go meddling with the C/C++ Group parsing rules I thought I'd ask if anyone else has already updated it to support class member functions (in the header file)? Out the box it only supports globally scoped functions and class member functions that are defined in the .cpp file e.g.

    Code: Select all

    // FILE : B.h
    class B
    {
    public:
    	void Test(){} // not in Function List
    };
    
    namespace blah
    {
    	void test2(){} // not in Function List
    }
    
    void test3(){} // In Function List
    #endif
    
    // File B.cpp
    
    void B::op1() // In Function List
    {
    }
    The indents are 1 tab.

    Thanks - Brad

    6,685587
    Grand MasterGrand Master
    6,685587

      Nov 07, 2014#2

      Change in %APPDATA%\IDMComp\UltraEdit\wordfiles\c_cplusplus.uew

      /TGBegin "Functions"
      /TGFindStr = "^(?!if\b|else\b|while\b|[\s*])(?:[\w*~_&]+?\s+){1,6}([\w:*~_&]+\s*)\([^);]*\)[^{;]*?(?:^[^\r\n{]*;?[\s]+){0,10}\{"

      to

      /TGBegin "Functions"
      /TGFindStr = "^[\t ]*(?!if\b|else\b|while\b|[\s*])(?:[\w*~_&]+?\s+){1,6}([\w:*~_&]+\s*)\([^);]*\)[^{;]*?(?:^[^\r\n{]*;?[\s]+){0,10}\{"

      to allow optionally tabs or spaces at beginning of a function definition line.
      Best regards from an UC/UE/UES for Windows user from Austria

      481
      Basic UserBasic User
      481

        Nov 07, 2014#3

        Thanks Mofi. That did the trick.