[cfe-dev] Automatically Adding Preprocessor Defines to the Beginning of Files

Justin Holewinski justin.holewinski at gmail.com
Mon Nov 21 05:10:01 PST 2011


On Nov 20, 2011 4:36 PM, "Bill Walters" <daedalic at gmail.com> wrote:
>
> What is the simplest way of modifying the clang lexer code to
automatically
> add a few preprocessor defines to the beginning of every file that is
> complied using clang++? Thanks for any help

Why not just pass these as -D options on the command line?

>
> --
> View this message in context:
http://clang-developers.42468.n3.nabble.com/Automatically-Adding-Preprocessor-Defines-to-the-Beginning-of-Files-tp3523323p3523323.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111121/30387cd5/attachment.html>


More information about the cfe-dev mailing list