The previous S40 platform was shared w/the Mistubishi Carisma. The current one is shared with the Madza 3 and current Euro-spec Ford Focus (not our US Focus...that one is the previous platform).
Regardless, not being a 100% Volvo platform doesn't mean it's inferior either.