forked from OSchip/llvm-project
7d17010db5
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 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
CommentHandlerTest.cpp | ||
CompilationDatabaseTest.cpp | ||
Makefile | ||
RecursiveASTVisitorTest.cpp | ||
RefactoringCallbacksTest.cpp | ||
RefactoringTest.cpp | ||
RewriterTest.cpp | ||
RewriterTestContext.h | ||
TestVisitor.h | ||
ToolingTest.cpp |