This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247681 - Don't allow inplace renaming of a function declared in another function
Summary: Don't allow inplace renaming of a function declared in another function
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-03 21:47 UTC by Vladimir Kvashin
Modified: 2016-10-31 10:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2014-10-03 21:47:57 UTC
Don't allow inplace renaming of a function declared (but not defined) in another function
Consider the following code. Inplace renaming should not be available neither for extern_func_1, nor for extern_func_2. Now it is available for both.

int main(int argc, char** argv) {
    extern void extern_func_1();
    extern_func_1();
    void extern_func_2();
    extern_func_2();
    return 0;
}

tmcfe.cc:91
extern void saveArg(char**, char**); -- renaamed in place,
which is definitely incorrect.