Hello!<div><br></div><div>Currently I'm parsing Linux kernel source code and want to do some source code manipulations. I wanted to use clang for this, but in order to build AST clang should first preprocess source code and this causes clang to produce corrupted code in many cases, since kernel has lots of magic and not trivial behaviour.</div>
<div>Is it possible to force clang disable preprocessing and make it think, that source code is sane and thus build complete AST without macro and includes expansion? I do understand, that this is not how compiler suppose to work, but maybe there are any workarounds?</div>
<div><br></div><div>best regards,</div><div>Andrey Tarasevich</div>