[PATCH] Lex and ignore Microsoft's #pragma warning(...)

Reid Kleckner rnk at google.com
Wed Sep 11 15:37:51 PDT 2013


Hi rsmith,

This fixes PR17145 and avoids unknown pragma warnings.

This change does not attempt to map MSVC warning numbers to clang
warning flags.  Perhaps in the future we will implement a mapping for
some common subset of Microsoft warnings, but for now we don't.

http://llvm-reviews.chandlerc.com/D1652

Files:
  include/clang/Basic/DiagnosticLexKinds.td
  include/clang/Lex/PPCallbacks.h
  lib/Frontend/PrintPreprocessedOutput.cpp
  lib/Lex/Pragma.cpp
  test/Lexer/pragma-operators.cpp
  test/Preprocessor/pragma_microsoft.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1652.1.patch
Type: text/x-patch
Size: 12567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130911/edb91e03/attachment.bin>


More information about the cfe-commits mailing list