[cfe-dev] How to pass '#define's and '#undef's to a clang::Preprocessor object?

Peeter Joot peeter.joot at gmail.com
Mon Dec 3 10:41:32 PST 2012


I'd like to handle command line -D/-U options, so that I can use my
RecursiveASTVisitor code in place of my compiler command line (having done
the -I parts of this based on the
https://github.com/loarabia/Clang-tutorial/blob/master/tutorial6.cpp sample).

How are a preprocessor defines inserted (or removed) from a
clang::Preprocessor object?

-- 
Peeter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121203/38aeb300/attachment.html>


More information about the cfe-dev mailing list