<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt/apt-pkg/contrib/string_view.h, branch 2.9.21</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=2.9.21</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=2.9.21'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2024-11-17T15:41:33Z</updated>
<entry>
<title>string_view: Include missing headers</title>
<updated>2024-11-17T15:41:33Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2024-11-17T15:39:15Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=db57773a96d1108bdad78ff3d1359a88d9689912'/>
<id>urn:sha1:db57773a96d1108bdad78ff3d1359a88d9689912</id>
<content type='text'>
Specifically the lack of the `string_view` include is causing
compilation failures for rust-rust-apt.

Running iwyu also adds `algorithm` for our use of `std::min`,
and `iosfwd` for our use of `std::ostream` none of which seem
to be causing build failures so far.
</content>
</entry>
<entry>
<title>if APT_PKG_ABI &gt; 600: using APT::StringView = std::string_view;</title>
<updated>2024-11-14T17:24:32Z</updated>
<author>
<name>наб</name>
<email>nabijaczleweli@nabijaczleweli.xyz</email>
</author>
<published>2024-11-14T16:40:13Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=0cc32385f109705aac51e354d854833d6203f773'/>
<id>urn:sha1:0cc32385f109705aac51e354d854833d6203f773</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move StringViewCompareFast to strutil.h</title>
<updated>2024-11-14T17:17:10Z</updated>
<author>
<name>наб</name>
<email>nabijaczleweli@nabijaczleweli.xyz</email>
</author>
<published>2024-11-14T16:36:43Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=5250c229315dab9a6dbf68385dae88f561b0fbe1'/>
<id>urn:sha1:5250c229315dab9a6dbf68385dae88f561b0fbe1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>APT::StringView: add operator std::string_view(), StringViewCompareFast() for std::string_views, operator&lt;&lt;(ostream&amp;), std::string_view constructor, operator==(std::string_view)</title>
<updated>2024-11-12T19:23:28Z</updated>
<author>
<name>наб</name>
<email>nabijaczleweli@nabijaczleweli.xyz</email>
</author>
<published>2024-11-12T17:01:32Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=435da86cbc1a598ec5dd26a5329dfd8914992c26'/>
<id>urn:sha1:435da86cbc1a598ec5dd26a5329dfd8914992c26</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Modernize standard library includes</title>
<updated>2024-02-20T12:49:04Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2024-02-20T12:43:08Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=40a75722c43ae24cb9a99d6730a3b25b65819c49'/>
<id>urn:sha1:40a75722c43ae24cb9a99d6730a3b25b65819c49</id>
<content type='text'>
This was automated with sed and git-clang-format, and then I had to
fix up the top of policy.cc by hand as git-clang-format accidentally
indented it by two spaces.
</content>
</entry>
<entry>
<title>Avoid overstepping bounds in config file parsing</title>
<updated>2021-02-03T16:43:13Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2021-02-03T16:40:05Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=c4da2ff42da55ffc38c77a9170dc151216d75962'/>
<id>urn:sha1:c4da2ff42da55ffc38c77a9170dc151216d75962</id>
<content type='text'>
Our configuration files are not security relevant, but having a parser
which avoids crashing on them even if they are seriously messed up is
not a bad idea anyway. It is also a good opportunity to brush up the
code a bit avoiding a few small string copies with our string_view.
</content>
</entry>
<entry>
<title>StringView: Implement operator ""_sv</title>
<updated>2020-02-03T11:54:42Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2020-02-01T16:02:40Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=7d916e09d3c03127259e7bad7b99bbf4c090b511'/>
<id>urn:sha1:7d916e09d3c03127259e7bad7b99bbf4c090b511</id>
<content type='text'>
This allows us to define constexpr string view literals.
</content>
</entry>
<entry>
<title>Allow comparing string to StringView</title>
<updated>2019-06-11T12:45:55Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-02-04T19:35:07Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=fc7d9b53f201bfdc5b3955394e6609ed7dadd258'/>
<id>urn:sha1:fc7d9b53f201bfdc5b3955394e6609ed7dadd258</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make APT::StringView public</title>
<updated>2019-06-11T12:45:55Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2019-02-04T18:50:16Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=a6e86d51a0e32cdc91f2902b0d6b483af884dcca'/>
<id>urn:sha1:a6e86d51a0e32cdc91f2902b0d6b483af884dcca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat and sort all includes with clang-format</title>
<updated>2017-07-12T11:57:51Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2017-07-12T11:40:41Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=87274d0f22e1dfd99b2e5200e2fe75c1b804eac3'/>
<id>urn:sha1:87274d0f22e1dfd99b2e5200e2fe75c1b804eac3</id>
<content type='text'>
This makes it easier to see which headers includes what.

The changes were done by running

    git grep -l '#\s*include'  \
        | grep -E '.(cc|h)$' \
        | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/'

To modify all include lines by adding a space, and then running
./git-clang-format.sh.
</content>
</entry>
</feed>
