<div dir="ltr"><div>I've added this as Issue <a href="https://dwarfstd.org/issues/240422.1.html">240422.1</a>.</div><div><br></div><div>-cary</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 22, 2024 at 5:01 PM Adrian Prantl via Dwarf-discuss <<a href="mailto:dwarf-discuss@lists.dwarfstd.org">dwarf-discuss@lists.dwarfstd.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"># Swift Language version scheme<br>
<br>
## Background<br>
<br>
The list of languages at <a href="https://dwarfstd.org/languages-v6.html" rel="noreferrer" target="_blank">https://dwarfstd.org/languages-v6.html</a> does not list a version scheme for the Swift language. This proposal adds one.<br>
<br>
## Overview<br>
<br>
The Swift programming language does not have a version scheme defined for DW_AT_language_version. This proposal defines it to use the `VVMM` version scheme. This way "Swift 5.10" would be<br>
<br>
```<br>
DW_AT_language(DW_LANG_Swift)<br>
DW_AT_language_version(510)<br>
```<br>
<br>
and "Swift 6" would be `DW_AT_language_version(600)`. Even though Swift package releases usually have a Major.Minor.Patch version scheme (e.g., Swift 5.9.2), the Swift compiler frontend's LangOptions data structure only uses Major.Minor to distinguish syntax changes in the parser (see References). This version scheme is designed to match what the compiler does.<br>
<br>
## Proposed Changes<br>
<br>
Augment the table of language encodings to say<br>
<br>
```<br>
Swift DW_LNAME_Swift 0x001a 0 VVMM<br>
```<br>
<br>
## Dependencies<br>
<br>
Issue 210419.1 <br>
<br>
## References<br>
<br>
<a href="https://www.swift.org/download/" rel="noreferrer" target="_blank">https://www.swift.org/download/</a> (see older releases for a history of versions).<br>
<a href="https://github.com/apple/swift/blob/3d32f5fc8a9087add424a2704ef1dcd89c9307ff/include/swift/Basic/LangOptions.h#L174" rel="noreferrer" target="_blank">https://github.com/apple/swift/blob/3d32f5fc8a9087add424a2704ef1dcd89c9307ff/include/swift/Basic/LangOptions.h#L174</a><br>
-- <br>
Dwarf-discuss mailing list<br>
<a href="mailto:Dwarf-discuss@lists.dwarfstd.org" target="_blank">Dwarf-discuss@lists.dwarfstd.org</a><br>
<a href="https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss" rel="noreferrer" target="_blank">https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss</a><br>
</blockquote></div></div>