Project

General

Profile

Task #1657

Modifications in remove_function_signature method to handle some new cases

Added by Nandini Bansal about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
09/15/2021
Due date:
% Done:

0%

Estimated time:
3.00 h

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.

#1

Updated by Nandini Bansal about 3 years ago

  • Assignee set to Rohit Choudhary
#2

Updated by Rohit Choudhary about 3 years ago

  • Status changed from New to In Progress
#3

Updated by Rohit Choudhary about 3 years ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF