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

Method executeMoveIntoSourceAction

plugins/clang/codegen/clangrefactoring.cpp:228–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void ClangRefactoring::executeMoveIntoSourceAction()
229{
230 auto action = qobject_cast<QAction*>(sender());
231 Q_ASSERT(action);
232
233 auto iDecl = action->data().value<IndexedDeclaration>();
234 if (!iDecl.isValid()) {
235 iDecl = declarationUnderCursor(false);
236 }
237
238 const auto error = moveIntoSource(iDecl);
239 if (!error.isEmpty()) {
240 auto* message = new Sublime::Message(error, Sublime::Message::Error);
241 ICore::self()->uiController()->postMessage(message);
242 }
243}
244
245DocumentChangeSet::ChangeResult ClangRefactoring::applyChangesToDeclarations(const QString& oldName,
246 const QString& newName,

Callers

nothing calls this directly

Calls 5

uiControllerMethod · 0.80
dataMethod · 0.45
isValidMethod · 0.45
isEmptyMethod · 0.45
postMessageMethod · 0.45

Tested by

no test coverage detected