<?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 enum-attr.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>3c268af4 - Add support for attribute enum_extensibility.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/enum-attr.cpp#3c268af4</link>
        <description>Add support for attribute enum_extensibility.This commit adds support for a new attribute that will be used todistinguish between extensible and inextensible enums. There are threemain purposes of this attribute:1. Give better control over when enum-related warnings are issued.For example, in the code below, clang will not issue a -Wassign-enumwarning if the enum is marked &quot;open&quot;:enum __attribute__((enum_extensibility(closed))) EnumClosed {  B0 = 1, B1 = 10};enum __attribute__((enum_extensibility(open))) EnumOpen {  C0 = 1, C1 = 10};enum EnumClosed ec = 100; // warning issuedenum EnumOpen eo = 100; // no warning2. Enable code-completion and debugging tools to offer bettersuggestions.3. Make it easier for swift&apos;s clang importer to determine which swifttype an enum should be mapped to.For more details, see the discussion I started on cfe-dev:http://lists.llvm.org/pipermail/cfe-dev/2017-February/052748.htmlrdar://problem/12764379rdar://problem/23145650Differential Revision: https://reviews.llvm.org/D30766llvm-svn: 298332

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/enum-attr.cpp</description>
        <pubDate>Tue, 21 Mar 2017 02:23:00 +0000</pubDate>
        <dc:creator>Akira Hatanaka &lt;ahatanaka@apple.com&gt;</dc:creator>
    </item>
</channel>
</rss>
