1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

Code cosmetics.

This commit is contained in:
Sergey Prigogin 2008-05-03 20:13:52 +00:00
parent 72a6aa01fc
commit 7f19b400e8

View file

@ -686,12 +686,11 @@ public class CPPSemantics {
if (!data.contentAssist && (data.problem != null || data.hasResults()))
return;
//if still not found, loop and check our containing scope
// if still not found, loop and check our containing scope
if (data.qualified() && !(scope instanceof ICPPTemplateScope)) {
if (!data.usingDirectives.isEmpty())
data.usingDirectivesOnly = true;
else
if (data.usingDirectives.isEmpty())
break;
data.usingDirectivesOnly = true;
}
if (blockItem != null)
@ -1228,16 +1227,15 @@ public class CPPSemantics {
IASTName[] resultArray = null;
IASTDeclaration declaration = null;
if (node instanceof ICPPASTTemplateDeclaration)
if (node instanceof ICPPASTTemplateDeclaration) {
declaration = ((ICPPASTTemplateDeclaration)node).getDeclaration();
else if (node instanceof IASTDeclaration)
} else if (node instanceof IASTDeclaration) {
declaration = (IASTDeclaration) node;
else if (node instanceof IASTDeclarationStatement)
} else if (node instanceof IASTDeclarationStatement) {
declaration = ((IASTDeclarationStatement)node).getDeclaration();
else if (node instanceof ICPPASTCatchHandler)
} else if (node instanceof ICPPASTCatchHandler) {
declaration = ((ICPPASTCatchHandler)node).getDeclaration();
else if (node instanceof ICPPASTForStatement && checkAux)
{
} else if (node instanceof ICPPASTForStatement && checkAux) {
ICPPASTForStatement forStatement = (ICPPASTForStatement) node;
if (forStatement.getConditionDeclaration() == null) {
if (forStatement.getInitializerStatement() instanceof IASTDeclarationStatement)