1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/lib/Support/Windows
David Blaikie 898763a097 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.

llvm-svn: 181868
2013-05-15 07:36:59 +00:00
..
DynamicLibrary.inc Make DynamicLibrary thread-safe w/r/t call to dlerror() after dlopen(). PR10718 2011-08-22 19:01:52 +00:00
explicit_symbols.inc Windows/DynamicLibrary.inc: Fix trivial warnings. Thanks to John Myers! 2011-07-09 08:41:20 +00:00
Host.inc revert r147542 after comments from Joerg Sonnenberger 2012-01-05 18:28:46 +00:00
Memory.inc Add a comment about the requirement that the Windows.h header be last. 2012-12-04 07:04:57 +00:00
Mutex.inc
Path.inc Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration. 2013-02-12 21:21:59 +00:00
PathV2.inc [Support][Path][Windows] Fix dangling else. Don't call CloseHandle when CloseFD is false. 2013-03-15 19:25:47 +00:00
Process.inc Fix an obvious typo spotted by Reid Kleckner, and breaking windows builds. 2013-01-04 23:46:04 +00:00
Program.inc Fixes a buffer overrun where the allocated buffer wasn't large enough to accommodate the closing quote escape rules in some instances. 2013-05-01 02:53:14 +00:00
RWMutex.inc Remove tabs. 2012-07-19 00:06:06 +00:00
Signals.inc [Support] Disable assertion dialogs from the MSVC debug CRT 2013-04-05 16:18:03 +00:00
system_error.inc Make Win32's header file name lower for cross build on case-sensitive filesystem. 2011-02-04 12:53:04 +00:00
ThreadLocal.inc Satisfy C++ aliasing rules, per suggestion by Chandler. 2012-06-12 01:06:16 +00:00
TimeValue.inc
Watchdog.inc Add a new watchdog timer interface. The interface does not permit handling timeouts, so 2013-03-26 01:27:52 +00:00
Windows.h Use only explicit bool conversion operators 2013-05-15 07:36:59 +00:00