llvm-project/clang/unittests/Tooling
David Blaikie 7d17010db5 Use only explicit bool conversion operator
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.

DiagnosticBuilder kept its implicit conversion operator owing to the
prevalent use of it in return statements.

One bug was found in ExprConstant.cpp involving a comparison of two
PointerUnions (PointerUnion did not previously have an operator==, so
instead both operands were converted to bool & then compared). A test
is included in test/SemaCXX/constant-expression-cxx1y.cpp for the fix
(adding operator== to PointerUnion in LLVM).

llvm-svn: 181869
2013-05-15 07:37:26 +00:00
..
CMakeLists.txt fix the unit tests too. 2013-01-19 18:30:39 +00:00
CommentHandlerTest.cpp Add testing for CommentHandler, and fix a bug where trailing comments in #else 2012-06-24 23:56:26 +00:00
CompilationDatabaseTest.cpp Use only explicit bool conversion operator 2013-05-15 07:37:26 +00:00
Makefile fix the unit tests too. 2013-01-19 18:30:39 +00:00
RecursiveASTVisitorTest.cpp Streamify getNameForDiagnostic and remove the string versions of PrintTemplateArgumentList. 2013-02-22 15:46:01 +00:00
RefactoringCallbacksTest.cpp Really sort the #include lines in unittests/... 2012-12-04 09:53:37 +00:00
RefactoringTest.cpp Remove useless 'llvm::' qualifier from names like StringRef and others that are 2013-01-12 19:30:44 +00:00
RewriterTest.cpp Adds a method overwriteChangedFiles to the Rewriter. This is implemented by 2012-05-22 17:01:35 +00:00
RewriterTestContext.h Remove useless 'llvm::' qualifier from names like StringRef and others that are 2013-01-12 19:30:44 +00:00
TestVisitor.h Sort the #include lines for unittests/... 2012-12-04 09:45:34 +00:00
ToolingTest.cpp Fix a typo in the name of a tooling unit test 2013-01-28 04:37:38 +00:00