Hi,<div><br></div><div>This is a patch for <a href="http://llvm.org/bugs/attachment.cgi?bugid=3979">http://llvm.org/bugs/attachment.cgi?bugid=3979</a>.</div><div><br></div><div>It moves InitializePreprocessor() functionality to its own file under lib/Frontend from clang-cc.cpp.</div>

<div><br></div><div>This allows users of the clang libraries to properly initialize all the expected macros without copying and pasting 500 lines of code from clang-cc.cpp.</div><div><br></div><div>Not included are changes to Makefiles and such to properly add the new InitializePreprocessor.cpp file to the build system, since I do not know what is needed there.</div>

<div><br></div><div>-Alexei</div><div><br></div>