<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in pragma-warning.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>e31899c7 - Reland &quot;[clang-cl] Accept `#pragma warning(disable : N)` for some N&quot;</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/Sema/pragma-warning.cpp#e31899c7</link>
        <description>Reland &quot;[clang-cl] Accept `#pragma warning(disable : N)` for some N&quot;This reverts commit 0cd9d8a48bdddb17de2c6388f9d775353f9acab9 andadds the changes described in https://reviews.llvm.org/D110668#3034461.

            List of files:
            /llvm-project-15.0.7/clang/test/Sema/pragma-warning.cpp</description>
        <pubDate>Thu, 30 Sep 2021 18:41:58 +0000</pubDate>
        <dc:creator>Nico Weber &lt;thakis@chromium.org&gt;</dc:creator>
    </item>
<item>
        <title>b2de52be - [clang-cl] Accept `#pragma warning(disable : N)` for some N</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/Sema/pragma-warning.cpp#b2de52be</link>
        <description>[clang-cl] Accept `#pragma warning(disable : N)` for some Nclang-cl maps /wdNNNN to -Wno-flags for a few warnings that mapcleanly from cl.exe concepts to clang concepts.This patch adds support for the same numbers to`#pragma warning(disable : NNNN)`. It also lets`#pragma warning(push)` and `#pragma warning(pop)` have an effect,since these are used together with `warning(disable)`.The optional numeric argument to `warning(push)` is ignored,as are the other non-`disable` `pragma warning()` arguments.(Supporting `error` would be easy, but we also don&apos;t support`/we`, and those should probably be added together.)The motivating example is that a bunch of code (including in LLVM)uses this idiom to locally disable warnings about calls to deprecatedfunctions in Windows-only code, and 4996 maps nicely to-Wno-deprecated-declarations:    #pragma warning(push)    #pragma warning(disable: 4996)      f();    #pragma warning(pop)Implementation-wise:- Move `/wd` flag handling from Options.td to actual Driver-level code- Extract the function mapping cl.exe IDs to warning groups to the  new file clang/lib/Basic/CLWarnings.cpp- Create a diag::Group enum so that CLWarnings.cpp can refer to  existing groups by ID (and give DllexportExplicitInstantiationDecl  a named group), and add a function to map a diag::Group to the  spelling of it&apos;s associated commandline flag- Call that new function from PragmaWarningHandlerDifferential Revision: https://reviews.llvm.org/D110668

            List of files:
            /llvm-project-15.0.7/clang/test/Sema/pragma-warning.cpp</description>
        <pubDate>Tue, 28 Sep 2021 23:33:59 +0000</pubDate>
        <dc:creator>Nico Weber &lt;thakis@chromium.org&gt;</dc:creator>
    </item>
</channel>
</rss>
