[ms] Parse #pragma optimize and ignore it behind its own flag
authorHans Wennborg <hans@hanshq.net>
Tue, 20 Mar 2018 08:53:11 +0000 (08:53 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 20 Mar 2018 08:53:11 +0000 (08:53 +0000)
commit1bbe00e0ca2d37df87286bbc6108998b2fb4d643
tree2fbdcb9a0486a886dda7de066eb4e9b375590c67
parent8ad035d8e542e581e71ecbb0279c61f8b36e9558
[ms] Parse #pragma optimize and ignore it behind its own flag

This allows users to turn off warnings about this pragma specifically,
while still receiving warnings about other ignored pragmas.

Differential Revision: https://reviews.llvm.org/D44630

llvm-svn: 327959
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/include/clang/Parse/Parser.h
clang/lib/Parse/ParsePragma.cpp
clang/test/Preprocessor/pragma_microsoft.c