<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/llvm/unittests/ADT/StringRefTest.cpp, branch users/nico/python-2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[NFC][ADT] Add reverse iterators and `value_type` to StringRef (#105579)</title>
<updated>2024-08-22T21:44:35+00:00</updated>
<author>
<name>Rahul Joshi</name>
<email>rjoshi@nvidia.com</email>
</author>
<published>2024-08-22T21:44:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=911e246fe8fd35bd82fc11db001513a1e2f6990c'/>
<id>911e246fe8fd35bd82fc11db001513a1e2f6990c</id>
<content type='text'>
- Add reverse iterators and `value_type` to StringRef.
- Add unit test for all 4 iterator flavors.
- This prepares StringRef to be used with `SequenceToOffsetTable`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Add reverse iterators and `value_type` to StringRef.
- Add unit test for all 4 iterator flavors.
- This prepares StringRef to be used with `SequenceToOffsetTable`.</pre>
</div>
</content>
</entry>
<entry>
<title>[NFC][ADT] Remove &lt;&lt; operators from StringRefTest (#105500)</title>
<updated>2024-08-21T18:38:13+00:00</updated>
<author>
<name>Rahul Joshi</name>
<email>rjoshi@nvidia.com</email>
</author>
<published>2024-08-21T18:38:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8b4d4bee2a45f637fb4dcda49b592374e93a6480'/>
<id>8b4d4bee2a45f637fb4dcda49b592374e93a6480</id>
<content type='text'>
- Remove ostream &lt;&lt; operators for StringRef and StringRef pair from
StringTest.
  Both of these are natively supported by googletest framework.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Remove ostream &lt;&lt; operators for StringRef and StringRef pair from
StringTest.
  Both of these are natively supported by googletest framework.</pre>
</div>
</content>
</entry>
<entry>
<title>[NFC][ADT] Format StringRefTest.cpp to fit in 80 columns. (#105502)</title>
<updated>2024-08-21T14:10:17+00:00</updated>
<author>
<name>Rahul Joshi</name>
<email>rjoshi@nvidia.com</email>
</author>
<published>2024-08-21T14:10:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e1912a15b6b05aab36b7bcbe617980e8d808bd80'/>
<id>e1912a15b6b05aab36b7bcbe617980e8d808bd80</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] Use StringRef::operator== instead of StringRef::equals (NFC) (#91441)</title>
<updated>2024-05-08T17:33:53+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2024-05-08T17:33:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=bb6df0804ba0a0b0581aec4156138f5144dbcee2'/>
<id>bb6df0804ba0a0b0581aec4156138f5144dbcee2</id>
<content type='text'>
I'm planning to remove StringRef::equals in favor of
StringRef::operator==.

- StringRef::operator==/!= outnumber StringRef::equals by a factor of
  70 under llvm/ in terms of their usage.

- The elimination of StringRef::equals brings StringRef closer to
  std::string_view, which has operator== but not equals.

- S == "foo" is more readable than S.equals("foo"), especially for
  !Long.Expression.equals("str") vs Long.Expression != "str".</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I'm planning to remove StringRef::equals in favor of
StringRef::operator==.

- StringRef::operator==/!= outnumber StringRef::equals by a factor of
  70 under llvm/ in terms of their usage.

- The elimination of StringRef::equals brings StringRef closer to
  std::string_view, which has operator== but not equals.

- S == "foo" is more readable than S.equals("foo"), especially for
  !Long.Expression.equals("str") vs Long.Expression != "str".</pre>
</div>
</content>
</entry>
<entry>
<title>[ADT] Add StringRef::{starts,ends}_with(char) (#90311)</title>
<updated>2024-04-27T07:37:06+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2024-04-27T07:37:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9bb84cec1b5375c24e5fa9cf7700070d9d1b4184'/>
<id>9bb84cec1b5375c24e5fa9cf7700070d9d1b4184</id>
<content type='text'>
This patch adds to StringRef the equivalent of
std::string_view::{starts,ends}_with(char) in C++20.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds to StringRef the equivalent of
std::string_view::{starts,ends}_with(char) in C++20.</pre>
</div>
</content>
</entry>
<entry>
<title>[ADT] Make StringRef std::string_view conversion operator constexpr. NFC (#77506)</title>
<updated>2024-01-10T18:22:41+00:00</updated>
<author>
<name>Luke Lau</name>
<email>luke@igalia.com</email>
</author>
<published>2024-01-10T18:22:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=1c209322e462c1d1675cc4b9947712dcceac93b5'/>
<id>1c209322e462c1d1675cc4b9947712dcceac93b5</id>
<content type='text'>
This would allow us to compare StringRefs via std::string_view, avoiding
having
to make the existing StringRef compare machinery constexpr for now.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This would allow us to compare StringRefs via std::string_view, avoiding
having
to make the existing StringRef compare machinery constexpr for now.</pre>
</div>
</content>
</entry>
<entry>
<title>Add StringRef::consumeInteger(APInt)</title>
<updated>2023-05-23T13:01:38+00:00</updated>
<author>
<name>Thomas Preud'homme</name>
<email>thomas.preudhomme@arm.com</email>
</author>
<published>2023-05-16T09:24:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=dd00421c60716973f5d919967fd4d6ef84025979'/>
<id>dd00421c60716973f5d919967fd4d6ef84025979</id>
<content type='text'>
This will be required to allow arbitrary precision support to
FileCheck's numeric variables and expressions. Note: as per
getAsInteger(), this does not support negative value. If there is
interest for that it can be added in a separate patch.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D150878
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This will be required to allow arbitrary precision support to
FileCheck's numeric variables and expressions. Note: as per
getAsInteger(), this does not support negative value. If there is
interest for that it can be added in a separate patch.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D150878
</pre>
</div>
</content>
</entry>
<entry>
<title>[ADT] Make StringRef::compare like std::string_view::compare</title>
<updated>2023-01-15T19:59:21+00:00</updated>
<author>
<name>Benjamin Kramer</name>
<email>benny.kra@googlemail.com</email>
</author>
<published>2023-01-15T19:56:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=931d04be2fc8f3f0505b43e64297f75d526cb42a'/>
<id>931d04be2fc8f3f0505b43e64297f75d526cb42a</id>
<content type='text'>
string_view has a slightly weaker contract, which only specifies whether
the value is bigger or smaller than 0. Adapt users accordingly and just
forward to the standard function (that also compiles down to memcmp)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
string_view has a slightly weaker contract, which only specifies whether
the value is bigger or smaller than 0. Adapt users accordingly and just
forward to the standard function (that also compiles down to memcmp)
</pre>
</div>
</content>
</entry>
<entry>
<title>Reland "[llvm][NFC] Use c++17 style variable type traits"</title>
<updated>2022-11-08T14:15:15+00:00</updated>
<author>
<name>Nathan James</name>
<email>n.james93@hotmail.co.uk</email>
</author>
<published>2022-11-08T14:15:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=6aa050a69041e610587c51032fa477dd3d6da787'/>
<id>6aa050a69041e610587c51032fa477dd3d6da787</id>
<content type='text'>
This reverts commit 632a389f96355cbe7ed8fa7b8d2ed6267c92457c.

This relands commit
1834a310d060d55748ca38d4ae0482864c2047d8.

Differential Revision: https://reviews.llvm.org/D137493
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 632a389f96355cbe7ed8fa7b8d2ed6267c92457c.

This relands commit
1834a310d060d55748ca38d4ae0482864c2047d8.

Differential Revision: https://reviews.llvm.org/D137493
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[llvm][NFC] Use c++17 style variable type traits"</title>
<updated>2022-11-08T13:11:41+00:00</updated>
<author>
<name>Nathan James</name>
<email>n.james93@hotmail.co.uk</email>
</author>
<published>2022-11-08T13:11:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=632a389f96355cbe7ed8fa7b8d2ed6267c92457c'/>
<id>632a389f96355cbe7ed8fa7b8d2ed6267c92457c</id>
<content type='text'>
This reverts commit 1834a310d060d55748ca38d4ae0482864c2047d8.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 1834a310d060d55748ca38d4ae0482864c2047d8.
</pre>
</div>
</content>
</entry>
</feed>
