From 9ec0902c16f4eb59ffecfb98cc2c1f264b1483b4 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Fri, 17 May 2013 15:57:11 -0700 Subject: [PATCH] Friendlier CPPClosureType.toString method. --- .../cdt/internal/core/dom/parser/cpp/CPPClosureType.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClosureType.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClosureType.java index 4dc9994da48..cd6605d79b1 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClosureType.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPClosureType.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2012 Wind River Systems, Inc. and others. + * Copyright (c) 2010, 2013 Wind River Systems, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -9,6 +9,7 @@ * Markus Schorn (Wind River Systems) - initial API and implementation * Jens Elmenthaler - http://bugs.eclipse.org/173458 (camel case completion) * Thomas Corbat (IFS) + * Sergey Prigogin (Google) *******************************************************************************/ package org.eclipse.cdt.internal.core.dom.parser.cpp; @@ -17,7 +18,6 @@ import java.util.List; import org.eclipse.cdt.core.dom.ILinkage; import org.eclipse.cdt.core.dom.IName; -import org.eclipse.cdt.core.dom.ast.ASTTypeUtil; import org.eclipse.cdt.core.dom.ast.EScopeKind; import org.eclipse.cdt.core.dom.ast.IASTCompoundStatement; import org.eclipse.cdt.core.dom.ast.IASTExpression; @@ -305,10 +305,7 @@ public class CPPClosureType extends PlatformObject implements ICPPClassType, ICP */ @Override public String toString() { - char[] name= ASTTypeUtil.createNameForAnonymous(this); - if (name != null) - return new String(name); - return null; + return fLambdaExpression.getRawSignature(); } @Override