forked from qt-creator/qt-creator
		
	C++: Fix (Find)LocalSymbols for lambda parameters
Change-Id: I5cb69749b4f15e4f70dea410aa6f943c4189c502 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
		| @@ -175,6 +175,19 @@ protected: | ||||
|             _scopeStack.removeLast(); | ||||
|     } | ||||
|  | ||||
|     virtual bool visit(LambdaExpressionAST *ast) | ||||
|     { | ||||
|         if (ast->lambda_declarator && ast->lambda_declarator->symbol) | ||||
|             enterScope(ast->lambda_declarator->symbol); | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     virtual void endVisit(LambdaExpressionAST *ast) | ||||
|     { | ||||
|         if (ast->lambda_declarator && ast->lambda_declarator->symbol) | ||||
|             _scopeStack.removeLast(); | ||||
|     } | ||||
|  | ||||
|     virtual bool visit(CompoundStatementAST *ast) | ||||
|     { | ||||
|         if (ast->symbol) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user