[cfe-dev] How to make clang compile any other language ? I want it to support ACSL (specification language of C).)

James Dennett james.dennett at gmail.com
Mon Jul 22 10:20:49 PDT 2013


On Mon, Jul 22, 2013 at 5:26 AM, surbhi singh
<surbhi.chauhan011 at gmail.com> wrote:
> Hie Mahesha.
> Thanks for this information. I want to know that from where should I get
> information about Clang's preprocessor.

Preprocessor.h is a useful entry point for the preprocessor.
PPCallbacks is a useful extension point.

> To be specific I want to know where
> are the tokens specified in the code. I have searched the clang's
> documentation, but not able to find the right code for me to start.

Searching for "Lex" should find you the code that generates the tokens.

-- James



More information about the cfe-dev mailing list