mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Bug 399217 - Toggle Function: Exception on typedef as return type
The bug(s) seems to be fixed already. Added a test case for verification. Change-Id: If42d796ba27694254bdcd79d69aad323763c2105 Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
This commit is contained in:
parent
442bcd62e1
commit
3855933de1
1 changed files with 47 additions and 0 deletions
|
@ -3216,4 +3216,51 @@ public class ToggleRefactoringTest extends RefactoringTestBase {
|
||||||
public void testQualifiedFunctionInNestedNamespaceToSourceWithRecurringNamespaceName_464102() throws Exception {
|
public void testQualifiedFunctionInNestedNamespaceToSourceWithRecurringNamespaceName_464102() throws Exception {
|
||||||
assertRefactoringSuccess();
|
assertRefactoringSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//A.h
|
||||||
|
//typedef unsigned long uL;
|
||||||
|
//uL f();
|
||||||
|
//uL /*$*/f/*$$*/() {
|
||||||
|
// ulong a;
|
||||||
|
// return a;
|
||||||
|
//}
|
||||||
|
//====================
|
||||||
|
//typedef unsigned long uL;
|
||||||
|
//uL f();
|
||||||
|
|
||||||
|
//A.c
|
||||||
|
//#include "A.h"
|
||||||
|
//====================
|
||||||
|
//#include "A.h"
|
||||||
|
//
|
||||||
|
//uL f() {
|
||||||
|
// ulong a;
|
||||||
|
// return a;
|
||||||
|
//}
|
||||||
|
public void testToggleFunctionWithTypedefReturntypeToSource_399217() throws Exception {
|
||||||
|
assertRefactoringSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
|
//A.h
|
||||||
|
//typedef unsigned long uL;
|
||||||
|
//uL f();
|
||||||
|
//====================
|
||||||
|
//typedef unsigned long uL;
|
||||||
|
//uL f() {
|
||||||
|
// ulong a;
|
||||||
|
// return a;
|
||||||
|
//}
|
||||||
|
|
||||||
|
//A.c
|
||||||
|
//#include "A.h"
|
||||||
|
//
|
||||||
|
//uL /*$*/f/*$$*/() {
|
||||||
|
// ulong a;
|
||||||
|
// return a;
|
||||||
|
//}
|
||||||
|
//====================
|
||||||
|
//#include "A.h"
|
||||||
|
public void testToggleFunctionWithTypedefReturntypeToHeader_399217() throws Exception {
|
||||||
|
assertRefactoringSuccess();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue