Filter less in check::functions()

Stop filtering /^new_/ - we no longer generate these for classes, so
only the li_carrays and li_carrays_cpp testcases generate new_* flat
functions, and it's helpful to check those are generated.

Stop filtering /_(alter|get)_newobject$/' - we no longer generate
these, as they weren't used or documented.
This commit is contained in:
Olly Betts 2021-04-17 04:14:33 +12:00
commit 12bcd36923
3 changed files with 3 additions and 5 deletions

View file

@ -46,9 +46,7 @@ class check {
foreach($_original_functions['internal'] as $func) unset($df[$func]);
// Now chop out any get/set accessors
foreach(array_keys($df) as $func)
if ((self::GETSET && preg_match('/_[gs]et$/', $func)) ||
preg_match('/^new_/', $func) ||
preg_match('/_(alter|get)_newobject$/', $func))
if ((self::GETSET && preg_match('/_[gs]et$/', $func)))
$extrags[]=$func;
else $extra[]=$func;
// $extra=array_keys($df);