LM2940 datasheet, page 6, note 3: theta J-A = 53 C/W
Highest allowable temperature inside the chip is 150 C.
1.15 watts times 53 centigrade = 61 degrees above room temperature (in centigrade).
"Room temperature" is usually estimated as 25 C so the temperature of the hottest spot inside the chip would be 88 C. You can call that too hot if you want to. In that case, add a heat sink.
Highest allowable temperature inside the chip is 150 C.
1.15 watts times 53 centigrade = 61 degrees above room temperature (in centigrade).
"Room temperature" is usually estimated as 25 C so the temperature of the hottest spot inside the chip would be 88 C. You can call that too hot if you want to. In that case, add a heat sink.