[cfe-dev] How to make clang compile any other language ? I want it to support ACSL (specification language of C).)
Jacob Carlborg
doob at me.com
Thu Jul 18 01:28:18 PDT 2013
On 2013-07-18 08:49, Mahesha HS wrote:
> 2. Based on my understanding of your previous mail, as a first step, it
> looks like, you have to preserve comments in the original C program
> which Clang preprocessor probably throws away.
>
> 3. Then, probably you have to come-up with a mechanism to parse
> comments, to represent them as AST nodes, and further processing of
> these ASTs as per your requirements.
libclang contains API's for introspect comments. So obviously they are
preserved.
http://clang.llvm.org/doxygen/group__CINDEX__COMMENT.html
--
/Jacob Carlborg
More information about the cfe-dev
mailing list