mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Partial fix for 81806 - [Parser2] Constructor Initializer is mistaken as function prototype
This commit is contained in:
parent
ae8ed5955f
commit
f2488626d4
1 changed files with 2 additions and 0 deletions
|
@ -2370,6 +2370,7 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
||||||
|
|
||||||
IASTNode n = mostRelevantScopeNode;
|
IASTNode n = mostRelevantScopeNode;
|
||||||
mostRelevantScopeNode = namespaceDefinition;
|
mostRelevantScopeNode = namespaceDefinition;
|
||||||
|
namespaceDefinition.setParent(n);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
namespaceDeclarationLoop: while (LT(1) != IToken.tRBRACE) {
|
namespaceDeclarationLoop: while (LT(1) != IToken.tRBRACE) {
|
||||||
|
@ -3901,6 +3902,7 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
||||||
|
|
||||||
IASTNode n = mostRelevantScopeNode;
|
IASTNode n = mostRelevantScopeNode;
|
||||||
mostRelevantScopeNode = astClassSpecifier;
|
mostRelevantScopeNode = astClassSpecifier;
|
||||||
|
astClassSpecifier.setParent( n );
|
||||||
|
|
||||||
try {
|
try {
|
||||||
memberDeclarationLoop: while (LT(1) != IToken.tRBRACE) {
|
memberDeclarationLoop: while (LT(1) != IToken.tRBRACE) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue