| 226 | } |
| 227 | |
| 228 | void 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 | |
| 245 | DocumentChangeSet::ChangeResult ClangRefactoring::applyChangesToDeclarations(const QString& oldName, |
| 246 | const QString& newName, |
nothing calls this directly
no test coverage detected