Resolve typedefs in t_cpp_generator::render_const_value
Resolve typedefs in t_cpp_generator::render_const_value

Summary: When `type` is a `typedef`, `render_const_value` falls back to the generic case which generates a local variable. In files with thousands of values, thousands of local variables make Clang struggle. This diff resolves the `typedef`s so the correct logic is used.

Test Plan: Built admarket in a reasonable time. Will wait for sandcastle.

Reviewed By: philipp@fb.com

Subscribers: alandau, yfeldblum, tudort

FB internal diff: D2136465

Tasks: 7338906

Signature: t1:2136465:1433794701:738ed4d11ee775551be1b23b21c7e716b3629cd9

soumith/fbthrift,kangkot/fbthrift,fengshao0907/fbthrift,project-zerus/fbthrift,project-zerus/fbthrift,LinusU/fbthrift,project-zerus/fbthrift,LinusU/fbthrift,getyourguide/fbthrift,kangkot/fbthrift,raphaelamorim/fbthrift,SergeyMakarenko/fbthrift,raphaelamorim/fbthrift,Orvid/fbthrift,LinusU/fbthrift,LinusU/fbthrift,raphaelamorim/fbthrift,maxwell-demon/fbthrift,HankFaan/fbthrift,fengshao0907/fbthrift,chjp2046/fbthrift,fengshao0907/fbthrift,sinjar666/fbthrift,project-zerus/fbthrift,project-zerus/fbthrift,LinusU/fbthrift,HankFaan/fbthrift,fengshao0907/fbthrift,fengshao0907/fbthrift,Orvid/fbthrift,guker/fbthrift,fengshao0907/fbthrift,SergeyMakarenko/fbthrift,project-zerus/fbthrift,soumith/fbthrift,SergeyMakarenko/fbthrift,SergeyMakarenko/fbthrift,LinusU/fbthrift,maxwell-demon/fbthrift,kangkot/fbthrift,getyourguide/fbthrift,Orvid/fbthrift,SergeyMakarenko/fbthrift,soumith/fbthrift,sinjar666/fbthrift,project-zerus/fbthrift,SergeyMakarenko/fbthrift,SergeyMakarenko/fbthrift,SergeyMakarenko/fbthrift,facebook/fbthrift,getyourguide/fbthrift,project-zerus/fbthrift,sinjar666/fbthrift,maxwell-demon/fbthrift,maxwell-demon/fbthrift,facebook/fbthrift,LinusU/fbthrift,HankFaan/fbthrift,fengshao0907/fbthrift,maxwell-demon/fbthrift,soumith/fbthrift,guker/fbthrift,chjp2046/fbthrift,soumith/fbthrift,SergeyMakarenko/fbthrift,chjp2046/fbthrift,maxwell-demon/fbthrift,Orvid/fbthrift,HankFaan/fbthrift,guker/fbthrift,fengshao0907/fbthrift,guker/fbthrift,getyourguide/fbthrift,HankFaan/fbthrift,soumith/fbthrift,guker/fbthrift,facebook/fbthrift,getyourguide/fbthrift,getyourguide/fbthrift,kangkot/fbthrift,kangkot/fbthrift,maxwell-demon/fbthrift,Orvid/fbthrift,Orvid/fbthrift,facebook/fbthrift,facebook/fbthrift,guker/fbthrift,raphaelamorim/fbthrift,Orvid/fbthrift,raphaelamorim/fbthrift,SergeyMakarenko/fbthrift,kangkot/fbthrift,raphaelamorim/fbthrift,sinjar666/fbthrift,Orvid/fbthrift,soumith/fbthrift,Orvid/fbthrift,Orvid/fbthrift,maxwell-demon/fbthrift,chjp2046/fbthrift,maxwell-demon/fbthrift,facebook/fbthrift,LinusU/fbthrift,LinusU/fbthrift,chjp2046/fbthrift,fengshao0907/fbthrift,facebook/fbthrift,HankFaan/fbthrift,raphaelamorim/fbthrift,soumith/fbthrift,HankFaan/fbthrift,project-zerus/fbthrift,chjp2046/fbthrift,kangkot/fbthrift,raphaelamorim/fbthrift,kangkot/fbthrift,kangkot/fbthrift,SergeyMakarenko/fbthrift,HankFaan/fbthrift,getyourguide/fbthrift,LinusU/fbthrift,HankFaan/fbthrift,sinjar666/fbthrift,project-zerus/fbthrift,guker/fbthrift,maxwell-demon/fbthrift,guker/fbthrift,chjp2046/fbthrift,raphaelamorim/fbthrift,sinjar666/fbthrift,fengshao0907/fbthrift,project-zerus/fbthrift,SergeyMakarenko/fbthrift,maxwell-demon/fbthrift,soumith/fbthrift,chjp2046/fbthrift,getyourguide/fbthrift,sinjar666/fbthrift,raphaelamorim/fbthrift,getyourguide/fbthrift,chjp2046/fbthrift,sinjar666/fbthrift,guker/fbthrift,HankFaan/fbthrift,getyourguide/fbthrift,kangkot/fbthrift,raphaelamorim/fbthrift,LinusU/fbthrift,soumith/fbthrift,Orvid/fbthrift,facebook/fbthrift,sinjar666/fbthrift,getyourguide/fbthrift,facebook/fbthrift,HankFaan/fbthrift,getyourguide/fbthrift,project-zerus/fbthrift,soumith/fbthrift,chjp2046/fbthrift,guker/fbthrift,guker/fbthrift,chjp2046/fbthrift,sinjar666/fbthrift,sinjar666/fbthrift,kangkot/fbthrift,fengshao0907/fbthrift,chjp2046/fbthrift