Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Camelon2003-09-16 15:34:43 +0000
committerJohn Camelon2003-09-16 15:34:43 +0000
commit9b9bf1a17c06a089e3930733abe888c0d8c59669 (patch)
treecfc9cfbce00c0e23547d53ee6dae9d32046140cb /core/org.eclipse.cdt.core
parent6f580b7c1ab42148c0d7af0bbde52e3636d3a314 (diff)
downloadorg.eclipse.cdt-9b9bf1a17c06a089e3930733abe888c0d8c59669.tar.gz
org.eclipse.cdt-9b9bf1a17c06a089e3930733abe888c0d8c59669.tar.xz
org.eclipse.cdt-9b9bf1a17c06a089e3930733abe888c0d8c59669.zip
IASTFunction::previouslyDeclared implementation
Diffstat (limited to 'core/org.eclipse.cdt.core')
-rw-r--r--core/org.eclipse.cdt.core/parser/ChangeLog3
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java4
2 files changed, 5 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/parser/ChangeLog b/core/org.eclipse.cdt.core/parser/ChangeLog
index 6abff558bf2..82c6687d57f 100644
--- a/core/org.eclipse.cdt.core/parser/ChangeLog
+++ b/core/org.eclipse.cdt.core/parser/ChangeLog
@@ -1,3 +1,6 @@
+2003-09-16 John Camelon
+ Implement CompleteParse IASTFunction::previouslyDeclared().
+
2003-09-16 Hoda Amer
In completeParseASTFactory.getExpressionResultType(): Added the support
for expression type PRIMARY_THIS.
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
index 6ee28a48069..914399eed23 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
@@ -1677,6 +1677,7 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto
}
}
symbol.setIsForwardDeclaration(!isFunctionDefinition);
+ boolean previouslyDeclared = false;
if( isFunctionDefinition )
{
@@ -1697,6 +1698,7 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto
if( functionDeclaration != null )
{
+ previouslyDeclared = true;
functionDeclaration.setTypeSymbol( symbol );
// set the definition visibility = declaration visibility
ASTMethodReference reference = (ASTMethodReference) functionReferences.iterator().next();
@@ -1719,8 +1721,6 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto
throw new ASTSemanticException();
}
- boolean previouslyDeclared = false;
- //TODO : Hoda - if symbol was previously declared in PST, then set this to true
ASTMethod method = new ASTMethod( symbol, nameEndOffset, parameters, returnType, exception, startOffset, nameOffset, ownerTemplate, references, previouslyDeclared, isConstructor, isDestructor, isPureVirtual, visibility, constructorChain );
try

Back to the top