mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix warnings.
This commit is contained in:
parent
4218500207
commit
8b59db76b8
2 changed files with 5 additions and 1 deletions
|
@ -226,6 +226,7 @@ public class ExtractExpression extends ExtractedFunctionConstructionHelper {
|
||||||
} catch (DOMException e) {
|
} catch (DOMException e) {
|
||||||
// TODO Auto-generated catch block
|
// TODO Auto-generated catch block
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
name= new CPPASTName(classType.getNameCharArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
return new CPPASTNamedTypeSpecifier(name.copy());
|
return new CPPASTNamedTypeSpecifier(name.copy());
|
||||||
|
@ -255,6 +256,7 @@ public class ExtractExpression extends ExtractedFunctionConstructionHelper {
|
||||||
} catch (DOMException e) {
|
} catch (DOMException e) {
|
||||||
// TODO Auto-generated catch block
|
// TODO Auto-generated catch block
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
name= new CPPASTName(typedef.getNameCharArray());
|
||||||
}
|
}
|
||||||
return new CPPASTNamedTypeSpecifier(name.copy());
|
return new CPPASTNamedTypeSpecifier(name.copy());
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,8 @@ import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.Assert;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.dom.ast.IASTASMDeclaration;
|
import org.eclipse.cdt.core.dom.ast.IASTASMDeclaration;
|
||||||
import org.eclipse.cdt.core.dom.ast.IASTBinaryExpression;
|
import org.eclipse.cdt.core.dom.ast.IASTBinaryExpression;
|
||||||
import org.eclipse.cdt.core.dom.ast.IASTCompositeTypeSpecifier;
|
import org.eclipse.cdt.core.dom.ast.IASTCompositeTypeSpecifier;
|
||||||
|
@ -99,7 +101,7 @@ public class TrailNodeEqualityChecker implements EqualityChecker<IASTNode> {
|
||||||
} else if(node instanceof IASTName){
|
} else if(node instanceof IASTName){
|
||||||
return isNameEquals(trailNode, node);
|
return isNameEquals(trailNode, node);
|
||||||
} else {
|
} else {
|
||||||
assert true : "Unexpected Node, this code shoud nod reached"; //$NON-NLS-1$
|
Assert.isLegal(false, "Unexpected Node, this code shoud nod reached"); //$NON-NLS-1$
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue