forked from qt-creator/qt-creator
CppEditor: Consider symbol occurrences in comments
... when renaming. For local renaming, we consider only function parameters. Task-number: QTCREATORBUG-12051 Change-Id: I7948d69f11b97663c9bd747ae6241a82dd9bdd82 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -155,7 +155,7 @@ void TestDeclarationComments::commentsForDecl()
|
||||
const Symbol * const symbol = finder.find();
|
||||
QVERIFY(symbol);
|
||||
|
||||
const QList<Token> commentTokens = commentsForDeclaration(symbol, m_snapshot, m_textDoc);
|
||||
const QList<Token> commentTokens = commentsForDeclaration(symbol, m_textDoc, m_cppDoc);
|
||||
if (expectedCommentPrefix.isEmpty()) {
|
||||
QVERIFY(commentTokens.isEmpty());
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user