[cfe-dev] regarding adding new pragma

Mahesha HS mahesha.llvm at gmail.com
Thu Oct 25 23:03:11 PDT 2012


On Fri, Oct 26, 2012 at 11:20 AM, kumar0746 <kumar0746 at gmail.com> wrote:
> Hi i am new to clang. i like to add a new pragma in clang. can anyone help me
> with a sample code which can get me started.

First, you need to register *new* pragmas with Preprocessor.  Have a
look at the below files.
clang/lib/Lex/Pragma.cpp
clang/lib/Lex/Preprocessor.cpp.
clang/include/clang/Lex/Pragma.h
clang/lib/Lex/Preprocessor.h

> has anyone intergrated clomp
> with clang? if so can you provide me with steps that will help me to
> intergrate clomp with clang.

I might be wrong, but, integrating 'clomp' with clang looks *not*
straightforward. May be you can
check with Simone (Simone Pellegrini <spellegrini at dps.uibk.ac.at>)
who is the original author
of clomp.

--
mahesha


> Regards,
> Arun Kumar
>
>
>
> --
> View this message in context: http://clang-developers.42468.n3.nabble.com/regarding-adding-new-pragma-tp4027753.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



-- 
mahesha



More information about the cfe-dev mailing list