[cfe-dev] type checker in Clang

jahanian fjahanian at apple.com
Thu Oct 14 17:07:03 PDT 2010


On Oct 14, 2010, at 4:42 PM, Douglas Gregor wrote:

> 
> On Oct 14, 2010, at 3:32 PM, Nadeem Ahmad wrote:
> 
>> Dear All:
>> 
>> I want to look into the type checking process in the clang. Can any body guide me where to start?
> 
> The Sema object, whose code is in lib/Sema/*, contains the vast majority of Clang's type-checking logic. I suggest picking some simple language construct and looking at how it is handled in Sema.

Right. I normally do an assignment which causes error. Then set breakpoint at clang::Sema::Diag and 
go from there backwards.

- fariborz

> 
> 	- Doug
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list