<div dir="ltr"><div>Hi Gurus,</div><div>I am a newbie at llvm/clang, I am doing research at the preprocessor level.</div><div><br></div><div>I am now able to build clang in debug mode and manage to navigate into it with GDB, working on linux desktop.</div><div><br></div><div>I'd like to know if cheat cheat exist about</div><div><br></div><div>How to add a new directive (other than extending #pragma) i.e adding</div><div>#MyDirective</div><div><br></div><div>How to add a new predefined fun-like macro, for instance _MyMacro()</div><div><br></div><div>For #MyDirective case, my guess that I need to do:</div><div><br></div><div>- Define a new MyDirective token</div><div>- Implement a Handler for it</div><div>-  Implement the PrintPreprocessedOutput</div><div>- Test indeed :)</div><div><br></div><div>I can't translate  into a fileset I should look at and patch.</div><div><br></div><div>The _MyMacro() case will be <span class="gmail-ng gmail-Vt">different</span>, didn't not looked at it yet.</div><div><br></div><div>Does someone has a chat cheat at hand ? :-) or a git*.com link of an implementation I could infere from ?</div><div><br></div><div>Thanx in advance,</div><div>Cheers,</div><div>Phi<br></div></div>