[cfe-dev] Adding custom pragma to Clang
Hongbin Zheng via cfe-dev
cfe-dev at lists.llvm.org
Tue Aug 23 00:50:29 PDT 2016
I am trying to add custom pragma to clang to annotate extra infromation to
variables and loops.
I had a look at the OpenMP pragma handling a little bit, and found that
adding custom pragma like OpenMP to clang is not easy, one need to modify
the lexer, introduce dedicated node to AST, etc.
But on the other hand, I am thinking the pragma for variable and loop
annotating may not as complicated as those OpenMP pragmas. Is
there any simple pragma in clang that I can look at?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev