MCPcopy Create free account
hub / github.com/KDE/kdevelop / executeRenameAction

Method executeRenameAction

kdevplatform/language/codegen/basicrefactoring.cpp:253–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253void BasicRefactoring::executeRenameAction()
254{
255 auto* action = qobject_cast<QAction*>(sender());
256 if (action) {
257 IndexedDeclaration decl = action->data().value<IndexedDeclaration>();
258
259 {
260 DUChainReadLocker lock;
261
262 if (!decl.isValid())
263 decl = declarationUnderCursor();
264
265 if (!decl.isValid())
266 return;
267 }
268
269 startInteractiveRename(decl);
270 }
271}
272
273BasicRefactoring::NameAndCollector BasicRefactoring::newNameForDeclaration(
274 const KDevelop::DeclarationPointer& declaration)

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected