llvm-project/llvm/tools/bugpoint
David Blaikie 041f1aa3e2 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
..
BugDriver.cpp Replace uses of the deprecated std::auto_ptr with OwningPtr. 2013-04-12 10:56:28 +00:00
BugDriver.h Sort the #include lines for tools/... 2012-12-04 10:44:52 +00:00
CMakeLists.txt Don't export symbols in every binary on linux. 2013-04-04 01:01:32 +00:00
CrashDebugger.cpp Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
ExecutionDriver.cpp [bugpoint] make tool selection messages unique 2013-01-24 16:49:14 +00:00
ExtractFunction.cpp Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
FindBugs.cpp Most of bugpoint now only needs to know the pass names. 2010-08-08 03:55:08 +00:00
LLVMBuild.txt Split out the IRReader header and the utility functions it provides into 2013-03-26 02:25:37 +00:00
ListReducer.h Sort the #include lines for tools/... 2012-12-04 10:44:52 +00:00
Makefile Manually update the dependencies in the Makefiles. It turns out that all 2013-03-26 03:45:47 +00:00
Miscompilation.cpp Use only explicit bool conversion operators 2013-05-15 07:36:59 +00:00
OptimizerDriver.cpp Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
ToolRunner.cpp [bugpoint] set Message after tool configuration 2013-01-24 16:49:12 +00:00
ToolRunner.h Sort the #include lines for tools/... 2012-12-04 10:44:52 +00:00
bugpoint.cpp Extracted ObjCARC.cpp into its own library libLLVMObjCARCOpts in preparation for refactoring the ARC Optimizer. 2013-01-28 01:35:51 +00:00