• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Qt Creator 日本語化プロジェクトのgitリポジトリです。git://labs.trolltech.com/creator をcloneしてひとまず1.0.0-jpブランチを作成して作業していきます。


Commit MetaInfo

修订版083ea37eb0f44c31f2ecc1011a3a0c99f0c94971 (tree)
时间2009-10-13 21:49:12
作者Roberto Raggi <roberto.raggi@noki...>
Commitercon

Log Message

Rename the given enumerator.
(cherry picked from commit c33a8e94981f6b1acf2b11aaf04c3e86f6ceea12)

更改概述

差异

--- a/src/plugins/cpptools/cppfindreferences.cpp
+++ b/src/plugins/cpptools/cppfindreferences.cpp
@@ -168,10 +168,10 @@ protected:
168168
169169 bool isDeclSymbol(Symbol *symbol) const
170170 {
171- if (! symbol)
171+ if (! symbol) {
172172 return false;
173173
174- else if (symbol == _declSymbol) {
174+ } else if (symbol == _declSymbol) {
175175 return true;
176176
177177 } else if (symbol->line() == _declSymbol->line() && symbol->column() == _declSymbol->column()) {
@@ -349,6 +349,20 @@ protected:
349349 return false;
350350 }
351351
352+ virtual bool visit(EnumeratorAST *ast)
353+ {
354+ Identifier *id = identifier(ast->identifier_token);
355+ if (id == _id) {
356+ LookupContext context = currentContext(ast);
357+ const QList<Symbol *> candidates = context.resolve(control()->nameId(id));
358+ reportResult(ast->identifier_token, candidates);
359+ }
360+
361+ accept(ast->expression);
362+
363+ return false;
364+ }
365+
352366 virtual bool visit(SimpleNameAST *ast)
353367 {
354368 Identifier *id = identifier(ast->identifier_token);