1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 03:45:35 +02:00

Partial fix for bug#57526 [CModelTests]

This commit is contained in:
Hoda Amer 2004-04-27 17:31:48 +00:00
parent 428f0da6e7
commit eed5db60c0
3 changed files with 9 additions and 11 deletions

View file

@ -1,18 +1,15 @@
package org.eclipse.cdt.core.model.tests;
/********************************************************************** /**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others. * Copyright (c) 2004 Rational Software Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5 * are made available under the terms of the Common Public License v0.5
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v05.html * http://www.eclipse.org/legal/cpl-v05.html
* *
* Contributors: * Contributors:
* Rational Software - Initial API and implementation * IBM Rational Software - Initial API and implementation
***********************************************************************/ ***********************************************************************/
package org.eclipse.cdt.core.model.tests;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.util.List; import java.util.List;
@ -333,12 +330,12 @@ public class StructuralCModelElementsTests extends TestCase {
checkLineNumbers((CElement)var3, 75, 75); checkLineNumbers((CElement)var3, 75, 75);
// MyPackage ---> function pointer: orig_malloc_hook // MyPackage ---> function pointer: orig_malloc_hook
/* IVariable vDecl2 = (IVariable) nsVars.get(3); IVariable vDecl2 = (IVariable) nsVars.get(3);
assertEquals(vDecl2.getElementName(), new String("orig_malloc_hook")); assertEquals(vDecl2.getElementName(), new String("orig_malloc_hook"));
checkElementOffset((CElement)vDecl2); checkElementOffset((CElement)vDecl2);
assertEquals(vDecl2.getTypeName(), new String ("void*(*)(const char*, int, size_t)")); assertEquals(vDecl2.getTypeName(), new String ("void*(*)(const char*, int, int)"));
checkLineNumbers((CElement)vDecl2, 81, 81); checkLineNumbers((CElement)vDecl2, 81, 81);
*/
} }
private void checkVariableDeclarations(IParent namespace) throws CModelException{ private void checkVariableDeclarations(IParent namespace) throws CModelException{

View file

@ -1,3 +1,4 @@
#define size_t int
class B { class B {
int b; int b;
}; };

View file

@ -22,7 +22,7 @@ ConsolePreferencePage.errorColor.label=Error message text color
CBasePreferencePage.linkToEditor.label=Link view selection to active editor CBasePreferencePage.linkToEditor.label=Link view selection to active editor
CBasePreferencePage.CUChildren.label=Show file members in Project View CBasePreferencePage.CUChildren.label=Show file members in Project View
CBasePreferencePage.OutlineView.structuralParseMode.label=Use Structural-Parse mode to build the CModel CBasePreferencePage.OutlineView.structuralParseMode.label=Follow #include's when producing the outline view
CBasePreferencePage.editorFont.label=C Editor font: CBasePreferencePage.editorFont.label=C Editor font: