diff options
author | Sergey Prigogin | 2015-04-03 21:12:28 +0000 |
---|---|---|
committer | Sergey Prigogin | 2015-04-06 21:35:03 +0000 |
commit | 711ec8df95456d971ee3c6e6c0eeff586cdc6ba1 (patch) | |
tree | 0da018e688c9bab5e70476019d8ffb06538c8b86 /core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTImplicitDestructorName.java | |
parent | d702a8f9474364f96a35aebaffebbeb2d3533520 (diff) | |
download | org.eclipse.cdt-711ec8df95456d971ee3c6e6c0eeff586cdc6ba1.tar.gz org.eclipse.cdt-711ec8df95456d971ee3c6e6c0eeff586cdc6ba1.tar.xz org.eclipse.cdt-711ec8df95456d971ee3c6e6c0eeff586cdc6ba1.zip |
Bug 461538 - "noreturn" attribute in destructor is not accounted for
Change-Id: Ia3c3bdfdb26ff18092fd20be02f178ebb71848bb
Signed-off-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Diffstat (limited to 'core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTImplicitDestructorName.java')
-rw-r--r-- | core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTImplicitDestructorName.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTImplicitDestructorName.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTImplicitDestructorName.java new file mode 100644 index 00000000000..1488f4c707b --- /dev/null +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTImplicitDestructorName.java @@ -0,0 +1,32 @@ +/******************************************************************************* + * Copyright (c) 2015 Google, 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 + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Sergey Prigogin (Google) - initial API and implementation + *******************************************************************************/ +package org.eclipse.cdt.internal.core.dom.parser.cpp; + +import org.eclipse.cdt.core.dom.ast.IASTImplicitDestructorName; +import org.eclipse.cdt.core.dom.ast.IASTImplicitDestructorNameOwner; +import org.eclipse.cdt.core.dom.ast.IASTName; +import org.eclipse.cdt.core.dom.ast.IASTNode; + + +public class CPPASTImplicitDestructorName extends CPPASTImplicitName implements IASTImplicitDestructorName { + private final IASTName constructionPoint; + + public CPPASTImplicitDestructorName(char[] name, IASTNode parent, IASTName constructionPoint) { + super(name, parent); + this.constructionPoint = constructionPoint; + setPropertyInParent(IASTImplicitDestructorNameOwner.IMPLICIT_DESTRUCTOR_NAME); + } + + @Override + public IASTName getConstructionPoint() { + return constructionPoint; + } +} |