BuildIndex.cpp

All in one main function