| 289 | } |
| 290 | |
| 291 | KDevelop::ContextMenuExtension ClangSupport::contextMenuExtension(KDevelop::Context* context, QWidget* parent) |
| 292 | { |
| 293 | ContextMenuExtension cm; |
| 294 | auto *ec = dynamic_cast<KDevelop::EditorContext *>(context); |
| 295 | |
| 296 | if (ec && ICore::self()->languageController()->languagesForUrl(ec->url()).contains(this)) { |
| 297 | // It's a C++ file, let's add our context menu. |
| 298 | m_refactoring->fillContextMenu(cm, context, parent); |
| 299 | } |
| 300 | return cm; |
| 301 | } |
| 302 | |
| 303 | KTextEditor::Range ClangSupport::specialLanguageObjectRange(const QUrl &url, const KTextEditor::Cursor& position) |
| 304 | { |
nothing calls this directly
no test coverage detected