Task #1657
Modifications in remove_function_signature method to handle some new cases
0%
Description
Some new cases of headers with functions have been found which are not being handled as given below:
1. time.clock_gettime (clk_id) → float
2. time.clock_gettime_ns (clk_id) → int
3. kqueue.control (changelist, max_events[, timeout]) → eventlist
4. break [ ([filename:]lineno | function) [, condition]]
5. tbreak [ ([filename:]lineno | function) [, condition]]
These headers can be divided into two groups for handling:
(A) Headers with → i.e. 1, 2, 3
(B) Functions with arguments enclosed within [] i.e. 4 & 5
To handle (A), we need to make changes in the analyze_eliminated_string and add → as one of the symbols to be checked while determining that the eliminated string is correct
To handle (B), changes will have to be made in the utils.py functions header_funct_sign & remove_function_signature. Handling for parenthesis enclose function argument have been added, we need to extend it for square brackets as well.
Testing with Library Reference Book.
NOTE: No need to run Library Reference completely. You can stop/interrupt execution when candidate phrase generation starts.