1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Add comments

This commit is contained in:
John Camelon 2004-12-07 18:50:06 +00:00
parent 98e1eb667b
commit 301e1057eb
2 changed files with 8 additions and 0 deletions

View file

@ -1407,6 +1407,10 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
}
}
}
// x = y; // default to int
// valid @ Translation Unit scope
// but not valid as a statement in a function body
if( ds.getDeclaration() instanceof IASTSimpleDeclaration &&
((IASTSimpleDeclaration)ds.getDeclaration()).getDeclSpecifier() instanceof IASTSimpleDeclSpecifier &&
((IASTSimpleDeclSpecifier)((IASTSimpleDeclaration)ds.getDeclaration()).getDeclSpecifier() ).getType() == IASTSimpleDeclSpecifier.t_unspecified)

View file

@ -3425,6 +3425,10 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
try {
try {
name();
//TODO - we need to lookup/resolve this name
//see if its a type ...
//if it is a type, failed = false
//else failed = true
failed = false;
} catch (Exception e) {
int endOffset = (lastToken != null) ? lastToken