[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/languages/cpp
From: Adam Treat <manyoso () yahoo ! com>
Date: 2005-03-10 17:12:59
Message-ID: 20050310171259.1620917AA0 () office ! kde ! org
[Download RAW message or body]
CVS commit by treat:
* Complete on vars declared in the init part of a for loop and make completion
work on the conditional part of an if/else
M +5 -6 cppcodecompletion.cpp 1.160
--- kdevelop/languages/cpp/cppcodecompletion.cpp #1.159:1.160
@@ -1381,6 +1381,5 @@ SimpleContext* CppCodeCompletion::comput
if ( !var.type.isEmpty() )
{
- ctx->add
- ( var );
+ ctx->add( var );
//kdDebug(9007) << "add argument " << var.name << " with \
type " << var.type << endl; }
@@ -1450,4 +1449,5 @@ void CppCodeCompletion::computeContext(
void CppCodeCompletion::computeContext( SimpleContext*& ctx, IfStatementAST* ast, int line, int col )
{
+ computeContext( ctx, ast->condition(), line, col );
computeContext( ctx, ast->statement(), line, col );
computeContext( ctx, ast->elseStatement(), line, col );
@@ -1456,4 +1456,5 @@ void CppCodeCompletion::computeContext(
void CppCodeCompletion::computeContext( SimpleContext*& ctx, ForStatementAST* ast, int line, int col )
{
+ computeContext( ctx, ast->initStatement(), line, col );
computeContext( ctx, ast->condition(), line, col );
computeContext( ctx, ast->statement(), line, col );
@@ -1511,6 +1512,5 @@ void CppCodeCompletion::computeContext(
var.type = type;
var.name = toSimpleName( d->declaratorId() );
- ctx->add
- ( var );
+ ctx->add( var );
//kdDebug(9007) << "add variable " << var.name << " with type " << var.type << \
endl; }
@@ -1535,6 +1535,5 @@ void CppCodeCompletion::computeContext(
var.type = type;
var.name = toSimpleName( ast->declarator() ->declaratorId() );
- ctx->add
- ( var );
+ ctx->add( var );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic