History log of /llvm-project/llvm/unittests/ADT/StringMapTest.cpp (Results 51 – 69 of 69)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1
# 194c7d9f 09-May-2014 David Blaikie <dblaikie@gmail.com>

Remove use of = default/= delete as they're unsupported on MSVC2012

llvm-svn: 208388


# e08c540e 08-May-2014 David Blaikie <dblaikie@gmail.com>

Missed formatting

llvm-svn: 208362


# 8ae8fd08 08-May-2014 David Blaikie <dblaikie@gmail.com>

StringMap: Move assignment and move construction.

llvm-svn: 208361


# 9cb331f9 08-May-2014 David Blaikie <dblaikie@gmail.com>

StringMap support for move-only values.

llvm-svn: 208359


Revision tags: llvmorg-3.4.1, llvmorg-3.4.1-rc2, llvmorg-3.4.1-rc1
# f6921f84 03-Jan-2014 David Blaikie <dblaikie@gmail.com>

Fix break introduced in r198377 due to using a local type as a template parameter.

llvm-svn: 198379


# e9c66ed8 02-Jan-2014 David Blaikie <dblaikie@gmail.com>

Test coverage for non-default-constructible elements in a StringMap

This functionality was enabled by r198374. Here's a test to ensure it
works and we don't regress it.

Based on a patch by Maciej P

Test coverage for non-default-constructible elements in a StringMap

This functionality was enabled by r198374. Here's a test to ensure it
works and we don't regress it.

Based on a patch by Maciej Piechotka.

llvm-svn: 198377

show more ...


# eba457c2 02-Jan-2014 David Blaikie <dblaikie@gmail.com>

Remove StringMapEntryInitializer support.

It was never specialized so let's just remove that unused
configurability and always do the default.

llvm-svn: 198374


Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3, llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1, llvmorg-3.3.1-rc1, llvmorg-3.3.0, llvmorg-3.3.0-rc3, llvmorg-3.3.0-rc2, llvmorg-3.3.0-rc1, llvmorg-3.2.0, llvmorg-3.2.0-rc3, llvmorg-3.2.0-rc2, llvmorg-3.2.0-rc1
# 198422a4 19-Jun-2012 Chandler Carruth <chandlerc@gmail.com>

Fix PR13148, an inf-loop in StringMap.

StringMap suffered from the same bug as DenseMap: when you explicitly
construct it with a small number of buckets, you can arrange for the
tombstone-based grow

Fix PR13148, an inf-loop in StringMap.

StringMap suffered from the same bug as DenseMap: when you explicitly
construct it with a small number of buckets, you can arrange for the
tombstone-based growth path to be followed when the number of buckets
was less than '8'. In that case, even with a full map, it would compare
'0' as not less than '0', and refuse to grow the table, leading to
inf-loops trying to find an empty bucket on the next insertion. The fix
is very simple: use '<=' as the comparison. The same fix was applied to
DenseMap as well during its recent refactoring.

Thanks to Alex Bolz for the great report and test case. =]

llvm-svn: 158725

show more ...


# fc3856d9 19-Jun-2012 Chandler Carruth <chandlerc@gmail.com>

Remove some superfluous SCOPED_TRACEs from this unit test.

GoogleTest already prints errors with all the information about which
test case contained the error.

llvm-svn: 158724


Revision tags: llvmorg-3.1.0, llvmorg-3.1.0-rc3, llvmorg-3.1.0-rc2, llvmorg-3.1.0-rc1, llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2, llvmorg-3.0.0-rc1
# 7c37b1cf 14-Jul-2011 Chris Lattner <sabre@nondot.org>

The key of a StringMap can contain nul's in it, so having first() return
const char* doesn't make sense. Have it return StringRef instead.

llvm-svn: 135167


Revision tags: llvmorg-2.9.0, llvmorg-2.9.0-rc3, llvmorg-2.9.0-rc2, llvmorg-2.9.0-rc1
# 447762da 29-Nov-2010 Michael J. Spencer <bigcheesegs@gmail.com>

Merge System into Support.

llvm-svn: 120298


Revision tags: llvmorg-2.8.0, llvmorg-2.8.0-rc3, llvmorg-2.8.0-rc2, llvmorg-2.8.0-rc1, llvmorg-2.8.0-rc0, llvmorg-2.7.0
# 00ea4a36 11-Feb-2010 Jeffrey Yasskin <jyasskin@google.com>

Fix (harmless) memory leak found by memcheck.

llvm-svn: 95862


# 56869f22 26-Oct-2009 Chandler Carruth <chandlerc@gmail.com>

Move DataTypes.h to include/llvm/System, update all users. This breaks the last
direct inclusion edge from System to Support.

llvm-svn: 85086


Revision tags: llvmorg-2.6.0
# 5bf72e20 23-Jul-2009 Daniel Dunbar <daniel@zuster.org>

Convert StringMap to using StringRef for its APIs.
- Yay for '-'s and simplifications!

- I kept StringMap::GetOrCreateValue for compatibility purposes, this can
eventually go away. Likewise the

Convert StringMap to using StringRef for its APIs.
- Yay for '-'s and simplifications!

- I kept StringMap::GetOrCreateValue for compatibility purposes, this can
eventually go away. Likewise the StringMapEntry Create functions still follow
the old style.

- NIFC.

llvm-svn: 76888

show more ...


# e32cd94b 21-Jul-2009 Torok Edwin <edwintorok@gmail.com>

unbreak unit-tests on gcc-4.4.

llvm-svn: 76542


Revision tags: llvmorg-2.5.0
# 2a6dad5f 08-Jan-2009 Bill Wendling <isanbard@gmail.com>

Some generic clean-ups. Also make the StringMapEntryInitializer specialization apply only to the tests that are actually testing it.

llvm-svn: 61923


# 691c20d8 08-Jan-2009 Bill Wendling <isanbard@gmail.com>

* Don't explicitly cast "0" to "void*". This doesn't work well with specialized
StringMapEntryInitializer classes. Leave it for the compiler to figure out what
the type is and what "0" should be tr

* Don't explicitly cast "0" to "void*". This doesn't work well with specialized
StringMapEntryInitializer classes. Leave it for the compiler to figure out what
the type is and what "0" should be transformed into.

* Un-disable the unit tests which test the StringMapEntryInitializer class.

llvm-svn: 61922

show more ...


# 453b4d52 08-Jan-2009 Bill Wendling <isanbard@gmail.com>

80-column violation fix.

llvm-svn: 61919


# 017e4989 08-Jan-2009 Misha Brukman <brukman+llvm@gmail.com>

* Added unittests for StringMap
* Fixed but in StringMap::clear()
* Removed trailing whitespace

Original patch by Talin.

llvm-svn: 61914


123