1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-09 18: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())) if (!data.contentAssist && (data.problem != null || data.hasResults()))
return; 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.qualified() && !(scope instanceof ICPPTemplateScope)) {
if (!data.usingDirectives.isEmpty()) if (data.usingDirectives.isEmpty())
data.usingDirectivesOnly = true;
else
break; break;
data.usingDirectivesOnly = true;
} }
if (blockItem != null) if (blockItem != null)
@ -1228,16 +1227,15 @@ public class CPPSemantics {
IASTName[] resultArray = null; IASTName[] resultArray = null;
IASTDeclaration declaration = null; IASTDeclaration declaration = null;
if (node instanceof ICPPASTTemplateDeclaration) if (node instanceof ICPPASTTemplateDeclaration) {
declaration = ((ICPPASTTemplateDeclaration)node).getDeclaration(); declaration = ((ICPPASTTemplateDeclaration)node).getDeclaration();
else if (node instanceof IASTDeclaration) } else if (node instanceof IASTDeclaration) {
declaration = (IASTDeclaration) node; declaration = (IASTDeclaration) node;
else if (node instanceof IASTDeclarationStatement) } else if (node instanceof IASTDeclarationStatement) {
declaration = ((IASTDeclarationStatement)node).getDeclaration(); declaration = ((IASTDeclarationStatement)node).getDeclaration();
else if (node instanceof ICPPASTCatchHandler) } else if (node instanceof ICPPASTCatchHandler) {
declaration = ((ICPPASTCatchHandler)node).getDeclaration(); declaration = ((ICPPASTCatchHandler)node).getDeclaration();
else if (node instanceof ICPPASTForStatement && checkAux) } else if (node instanceof ICPPASTForStatement && checkAux) {
{
ICPPASTForStatement forStatement = (ICPPASTForStatement) node; ICPPASTForStatement forStatement = (ICPPASTForStatement) node;
if (forStatement.getConditionDeclaration() == null) { if (forStatement.getConditionDeclaration() == null) {
if (forStatement.getInitializerStatement() instanceof IASTDeclarationStatement) if (forStatement.getInitializerStatement() instanceof IASTDeclarationStatement)