Hi!<br>Here are the cutted patch files of indepenent changes:<br>TranslationUnit.patch - adds support (de)serialization (from)to (in memory) buffer.<br>Preprocessor.patch - adds a new method (getPredefines) needed for passing predefines list to clangserver.<br>
ASTConsumers.patch - adds functions what supports capruing ASTConsumer's output.<br>I haven't attached clang.cpp, clang.h NetSession.cpp, NetSession.h patch because they place in source structure is unknown.<br>We have to refactor the Driver directory content first.<br>
<br>distclang and clangserver requirements (needs redesign or cleanup):<br> - ASTConsumer library<br> - system headers and defines setup and target setup library (all target dependent stuff)<br> - capture output of PrintPreprocessedOutput.cpp. Ted: openfd is not acceptable, because we have to know the output size before we send it. (required by net packet header)<br>
- platform independent thread and network support. Should these added to llvm/Support or System library ?<br><br>We also have to decide if we want to be distcc compatible or not. And what's the benefit of distcc compatibility?<br>
<br>I've also attached a skeleton of distclang documentation page (no info yet, it will be added after the initial commit).<br><br>Cheers,<br>Csaba Hruska<br>