llvm-6502/include/llvm/ADT
David Blaikie 453f4f0130 Use only explicit bool conversion operators
BitVector/SmallBitVector::reference::operator bool remain implicit since
they model more exactly a bool, rather than something else that can be
boolean tested.

The most common (non-buggy) case are where such objects are used as
return expressions in bool-returning functions or as boolean function
arguments. In those cases I've used (& added if necessary) a named
function to provide the equivalent (or sometimes negative, depending on
convenient wording) test.

One behavior change (YAMLParser) was made, though no test case is
included as I'm not sure how to reach that code path. Essentially any
comparison of llvm::yaml::document_iterators would be invalid if neither
iterator was at the end.

This helped uncover a couple of bugs in Clang - test cases provided for
those in a separate commit along with similar changes to `operator bool`
instances in Clang.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181868 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-15 07:36:59 +00:00
..
APFloat.h Use LLVM_DELETED_FUNCTION rather than '// do not implement' comments. 2013-02-18 23:11:17 +00:00
APInt.h Switching -1ULL to UINT64_MAX to fix MSVC warnings. Patch thanks to Peng Cheng! 2013-02-27 18:38:33 +00:00
APSInt.h Use pre-inc, pre-dec when possible. 2013-03-20 23:56:19 +00:00
ArrayRef.h Add ArrayRef constructor from None, and do the cleanups that this constructor enables 2013-05-05 00:40:33 +00:00
BitVector.h Switch LLVM_USE_RVALUE_REFERENCES to LLVM_HAS_RVALUE_REFERENCES. 2012-11-30 11:45:22 +00:00
DAGDeltaAlgorithm.h Sort the #include lines for the include/... tree with the script. 2012-12-03 17:02:12 +00:00
DeltaAlgorithm.h Sort the #include lines for the include/... tree with the script. 2012-12-03 17:02:12 +00:00
DenseMap.h use static_cast to get rid of windows warning. 2013-05-01 14:07:02 +00:00
DenseMapInfo.h Fix integer undefined behavior due to signed left shift overflow in LLVM. 2012-08-24 23:29:28 +00:00
DenseSet.h Make comment a bit more clear. 2013-01-04 17:59:17 +00:00
DepthFirstIterator.h Sort the #include lines for the include/... tree with the script. 2012-12-03 17:02:12 +00:00
edit_distance.h Add function for computing the edit distance of two arrays. 2012-02-15 22:13:07 +00:00
EquivalenceClasses.h Fix Doxygen issues: wrap code examples in \code and use \p to refer to 2012-09-15 20:22:05 +00:00
FoldingSet.h Sort the #include lines for the include/... tree with the script. 2012-12-03 17:02:12 +00:00
GraphTraits.h Change the Dominators recalculate() function to only rely on GraphTraits 2011-12-05 19:17:04 +00:00
Hashing.h Make the host endianness check an integer constant expression. 2013-04-15 14:44:24 +00:00
ilist_node.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
ilist.h Cleanup the simplify_type implementation. 2013-03-27 16:43:11 +00:00
ImmutableIntervalMap.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
ImmutableList.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
ImmutableMap.h Add missing typename to unbreak the MSVC 2012 build. 2013-02-14 03:24:14 +00:00
ImmutableSet.h Add missing typename to unbreak the MSVC 2012 build. 2013-02-14 03:24:14 +00:00
IndexedMap.h SparseSet: Add support for key-derived indexes and arbitrary key types. 2012-04-20 20:05:28 +00:00
IntEqClasses.h Use IntEqClasses to compute connected components of live intervals. 2010-12-21 00:48:17 +00:00
IntervalMap.h Use only explicit bool conversion operators 2013-05-15 07:36:59 +00:00
IntrusiveRefCntPtr.h Cleanup the simplify_type implementation. 2013-03-27 16:43:11 +00:00
MapVector.h Remove my bogus MapVector::erase() with a narrower ::pop_back(), and add a unit test. 2013-02-19 18:26:07 +00:00
None.h Correct spelling of 'enumerator'. 2013-02-21 06:08:22 +00:00
NullablePtr.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
Optional.h Cleanup the simplify_type implementation. 2013-03-27 16:43:11 +00:00
OwningPtr.h Use only explicit bool conversion operators 2013-05-15 07:36:59 +00:00
PackedVector.h PackedVector: Make the BitVector implementation configurable. 2012-09-28 16:40:29 +00:00
PointerIntPair.h Fix PointerIntPair to be enum class compatible. 2013-04-09 00:01:51 +00:00
PointerUnion.h Use only explicit bool conversion operators 2013-05-15 07:36:59 +00:00
PostOrderIterator.h Add std prefixes to fix the build with xlc. 2013-03-20 21:00:22 +00:00
PriorityQueue.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00
SCCIterator.h Sort the #include lines for the include/... tree with the script. 2012-12-03 17:02:12 +00:00
ScopedHashTable.h Mark unimplemented copy constructors and copy assignment operators as LLVM_DELETED_FUNCTION. 2012-09-17 06:31:17 +00:00
SetOperations.h
SetVector.h Third try at fixing this. ;] Go back to using std::remove_if, which has 2012-10-03 01:04:07 +00:00
SmallBitVector.h Use NumBaseBits in a few more places in SmallBitVector instead of recalculating it. No functional change. 2013-03-15 06:01:42 +00:00
SmallPtrSet.h SmallVector and SmallPtrSet allocations now power-of-two aligned. 2013-03-29 22:07:12 +00:00
SmallSet.h Document the return value of SmallSet insert. 2013-04-04 04:54:21 +00:00
SmallString.h Another test commit. Remove trailing whitespace. 2013-02-26 19:33:48 +00:00
SmallVector.h SmallVector and SmallPtrSet allocations now power-of-two aligned. 2013-03-29 22:07:12 +00:00
SparseBitVector.h Provide malloc-free sentinels for the SparseBitVector internals. 2012-09-28 15:36:41 +00:00
SparseMultiSet.h SparseMultiSet.h: Add suggested parentheses. 2013-01-22 05:41:57 +00:00
SparseSet.h Sort the #include lines for the include/... tree with the script. 2012-12-03 17:02:12 +00:00
Statistic.h Disable statistics on Release builds and move tests that depend on -stats. 2013-03-08 22:56:31 +00:00
STLExtras.h typo 2012-11-16 21:33:35 +00:00
StringExtras.h Add llvm::hexDigitValue to convert single characters to hex. 2013-01-18 21:45:30 +00:00
StringMap.h Clear the whole table including the tombstones, since the tombstone count will 2013-02-21 21:32:00 +00:00
StringRef.h Replaced usages of size_type with size_t to be more consistent. 2013-05-02 20:30:27 +00:00
StringSet.h [ADT] Fix StringSet::insert() to not allocate on every lookup. 2013-03-15 20:16:59 +00:00
StringSwitch.h Fix shadowed variable warning 2012-08-01 01:43:10 +00:00
TinyPtrVector.h Switch LLVM_USE_RVALUE_REFERENCES to LLVM_HAS_RVALUE_REFERENCES. 2012-11-30 11:45:22 +00:00
Triple.h [SystemZ] Add llvm::Triple::systemz 2013-05-03 11:05:17 +00:00
Twine.h Fix typo 2013-04-18 20:49:17 +00:00
UniqueVector.h
ValueMap.h Sort the #include lines for the include/... tree with the script. 2012-12-03 17:02:12 +00:00
VariadicFunction.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00