Preheat the oven to 400 degrees F.
Pour the olive oil into a 9 x 13 metal cake pan. Add the tomatoes and garlic. Sprinkle with the salt, pepper, hot pepper flakes, and sugar. Toss well, making sure everything is well mixed.
Place the pan in the oven and roast for 30 to 40 minutes. Stir after 20 minutes and then again every 5 or 10 minutes. The tomatoes should be shriveled and the garlic tender.
Meanwhile, cook the pasta according to the package directions in a pot of salted water. When done, drain the pasta well and return it to the pot. Add the tomato mixture and basil, tossing to evenly distribute. Sprinkle with freshly grated cheese and garnish with a few extra basil leaves.