[PATCH] Implementing #pragma GCC warning/error
dgregor at apple.com
Tue Apr 16 06:51:20 PDT 2013
On Apr 15, 2013, at 6:01 PM, Andy Gibbs <andyg1001 at hotmail.co.uk> wrote:
> Attached is a patch implementing #pragma GCC warning and #pragma GCC error by extending the implementation of #pragma warning which is already present in clang.
> Does anyone have any objections to me committing this?
+ PragmaMessageHandler(PPCallbacks::PragmaMessageKind Kind,
+ StringRef Namespace = StringRef())
+ : PragmaHandler(PragmaKind(Kind) + 7),
This "+7" is a bit too magical. Please turn it into a separate function with a switch.
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
More information about the cfe-commits