mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 456207 - Skip ICPPASTFunctionDeclarator.getNoexceptExpression() in
ASTComparer Change-Id: I298f52e9ad21643d8fe58283e0c30e95c12b92ad Signed-off-by: Nathan Ridge <zeratul976@hotmail.com> Reviewed-on: https://git.eclipse.org/r/38788 Tested-by: Hudson CI Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
parent
787d0e1642
commit
cc7bf7b392
2 changed files with 11 additions and 1 deletions
|
@ -61,7 +61,12 @@ public class ASTComparer extends Assert {
|
|||
"isAssociatedWithLastName",
|
||||
"getNestingLevel",
|
||||
"getImplicitNames",
|
||||
"isLValue"
|
||||
"isLValue",
|
||||
|
||||
// These methods can return a special constant value, such as
|
||||
// ICPPASTFunctionDecalarator.NOEXCEPT_DEFAULT, which does not
|
||||
// get cloned when the node is copied.
|
||||
"getNoexceptExpression"
|
||||
));
|
||||
|
||||
public static void assertCopy(IASTNode node1, IASTNode node2) {
|
||||
|
|
|
@ -11007,4 +11007,9 @@ public class AST2CPPTests extends AST2TestBase {
|
|||
// constexpr on a method *should not* make the method const
|
||||
assertSameType(waldo3.getType(), new CPPFunctionType(CommonTypes.int_, new IType[]{}));
|
||||
}
|
||||
|
||||
// void waldo() noexcept;
|
||||
public void testASTCopyForNoexceptDefault_bug456207() throws Exception {
|
||||
parseAndCheckBindings();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue