1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00

Fix rebase error for pr #234 - C++ Fold Expressions

PR #234 had a compilation error once it was rebased which
wasn't identified until after it was rebased and merged
to main causing build to fail.

This PR is to fix that rebase error.
This commit is contained in:
Jonah Graham 2023-02-07 21:36:06 -05:00
parent f2f862351e
commit f8625ef447
2 changed files with 3 additions and 3 deletions

View file

@ -105,7 +105,7 @@ public class FoldExpressionTests extends AST2CPPTestBase {
// } // }
public void testFoldExpressionRecognition1() throws Exception { public void testFoldExpressionRecognition1() throws Exception {
final String code = getAboveComment(); final String code = getAboveComment();
IASTTranslationUnit tu = parse(code, CPP, false, false); IASTTranslationUnit tu = parse(code, CPP, ScannerKind.STD, false);
ICPPASTTemplateDeclaration tdef = getDeclaration(tu, 0); ICPPASTTemplateDeclaration tdef = getDeclaration(tu, 0);
IASTFunctionDefinition fdef = (IASTFunctionDefinition) tdef.getDeclaration(); IASTFunctionDefinition fdef = (IASTFunctionDefinition) tdef.getDeclaration();
IASTProblemStatement p1 = getStatement(fdef, 0); IASTProblemStatement p1 = getStatement(fdef, 0);
@ -117,7 +117,7 @@ public class FoldExpressionTests extends AST2CPPTestBase {
// } // }
public void testFoldExpressionRecognition2() throws Exception { public void testFoldExpressionRecognition2() throws Exception {
final String code = getAboveComment(); final String code = getAboveComment();
IASTTranslationUnit tu = parse(code, CPP, false, false); IASTTranslationUnit tu = parse(code, CPP, ScannerKind.STD, false);
ICPPASTTemplateDeclaration tdef = getDeclaration(tu, 0); ICPPASTTemplateDeclaration tdef = getDeclaration(tu, 0);
IASTFunctionDefinition fdef = (IASTFunctionDefinition) tdef.getDeclaration(); IASTFunctionDefinition fdef = (IASTFunctionDefinition) tdef.getDeclaration();
IASTProblemStatement p1 = getStatement(fdef, 0); IASTProblemStatement p1 = getStatement(fdef, 0);

View file

@ -16,7 +16,7 @@ package org.eclipse.cdt.core.dom.ast.cpp;
/** /**
* Fold expression, introduced in C++17. * Fold expression, introduced in C++17.
* *
* @since 8.0 * @since 8.1
* @noextend This interface is not intended to be extended by clients. * @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients. * @noimplement This interface is not intended to be implemented by clients.
*/ */