Preheat the oven to 220°C, fan 200°C, gas 7. Put the tomatoes on a baking tray, scatter over the garlic and toss with the olive oil. Roast for 10 minutes.
Meanwhile, cook the pasta according to the pack instructions then drain. Stir in the roasted tomatoes and garlic, the pesto and grated parmesan.
Serve garnished with the basil leaves and parmesan shavings.