get_method_overrides
Analyzes C++ virtual method overrides, showing base-class method overridden and derived-class overriding methods for a given method name.
Instructions
Return C++ virtual method override information — libclang-powered vtable analysis. Resolves virtual dispatch across class hierarchies: shows which base-class method this overrides, and which derived-class methods override this one. Text-based search cannot resolve virtual dispatch across translation units.
Shows what base-class method this method overrides, and what derived-class
methods override this one. Built from the overrides table which is
populated during fw-context index via post-processing of the inheritance
graph and virtual method signatures.
For class-level inheritance, use get_inheritance_chain. For symbol
details, use get_symbol_context.
Read-only. No side effects.
Args:
method_name: Method name to get override information for. Use
qualified name for disambiguation, e.g.
'UART_DRIVER::write'.
project_root: Project root. Auto-detected if omitted.
Returns: dict: { name, qualified_name, kind, file, line, signature, overrides: [{usr, name, qualified_name, kind, file, line}], overridden_by: [{usr, name, qualified_name, kind, file, line}] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method_name | Yes | Method name to get override information for. Use qualified name for disambiguation, e.g. 'UART_DRIVER::write'. | |
| project_root | No | Project root. Auto-detected if omitted. |