| 99 | } |
| 100 | |
| 101 | bool BasicRefactoring::shouldRenameUses(KDevelop::Declaration* declaration) const |
| 102 | { |
| 103 | // Now we know we're editing a declaration, but some declarations we don't offer a rename for |
| 104 | // basically that's any declaration that wouldn't be fully renamed just by renaming its uses(). |
| 105 | if (declaration->internalContext() || declaration->isForwardDeclaration()) { |
| 106 | //make an exception for non-class functions |
| 107 | if (!declaration->isFunctionDeclaration() || dynamic_cast<ClassFunctionDeclaration*>(declaration)) |
| 108 | return false; |
| 109 | } |
| 110 | return true; |
| 111 | } |
| 112 | |
| 113 | QString BasicRefactoring::newFileName(const QUrl& current, const QString& newName) |
| 114 | { |
no test coverage detected