Ask HN: What source code is worth studying?  
There is a good book on this theme
http://aosabook.org/en/index.html, where the authors actually go deep into the design & architecture of selected well designed open source projects
e.g. llvm, git, freeswitch, etc.Highly recommended !