-
The problem is that `SwitchToBuddy::switchDefinitionDeclaration()` just traverses `DUChainContext::Other` contexts while looking for a parent context owned by a definition. kdev-clang creates a `DUChainContext::Function` context for the definition (as I would expect), and the function fails to find a context. Fix that by also considering `DUChainContext::Function` contexts. Maybe we can also drop the context type check, not sure why it is there. REVIEW: 120174
95eb7733