Add new pragma

I know that if I want to add new pragma into clang, I have to inherit from PragmaHandler. but what clang option that can call pragma processor. I try to use -fpreprocessor but not work.

-fsyntax-only, or -E.

- Michael Spencer

Thank you.

I test by debug and break in Preprocessor::RegisterBuiltinPragmas but it doesn’t call.
This is command that I use. “clang -fsyntax-only wp1.c”

Hmm, that gets called for me with that command. What platform are you on?

Here's a sample of a very simple pragma I added.

- Michael Spencer

Thank you again. It’s work, but I made some mistakes in debugging.