| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix a regression I introduced back in r178147. | Rafael Espindola | 2013-07-18 | 1 | -0/+25 | 
| | | | | | | | | | | | | We don't want cast and dyn_cast to work on temporaries. They don't extend lifetime like a direct bind to a reference would, so they can introduce hard to find bugs. I added tests to make sure we don't regress this. Thanks to Eli Friedman for noticing this and for his suggestions on how to test it. llvm-svn: 186559 | ||||
| * | Sort the #include lines for unittest/... | Chandler Carruth | 2012-12-04 | 1 | -1/+0 | 
| | | | | | llvm-svn: 169250 | ||||
| * | Casting.h: Automatically handle isa<Base>(Derived). | Sean Silva | 2012-10-11 | 1 | -0/+51 | 
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additionally, all such cases are handled with no dynamic check. All `classof()` of the form class Foo { [...] static bool classof(const Bar *) { return true; } [...] } where Foo is an ancestor of Bar are no longer necessary. Don't write them! Note: The exact test is `is_base_of<Foo, Bar>`, which is non-strict, so that Foo is considered an ancestor of itself. This leads to the following rule of thumb for LLVM-style RTTI: The argument type of `classof()` should be a strict ancestor. For more information about implementing LLVM-style RTTI, see docs/HowToSetUpLLVMStyleRTTI.rst llvm-svn: 165765 | ||||
| * | Don't pass a null pointer to cast<> in its unit tests. | Richard Smith | 2012-08-21 | 1 | -3/+5 | 
| | | | | | llvm-svn: 162310 | ||||
| * | unittests/Support/Casting.cpp: [PR8226] Workaround for MSVC|Debug. | NAKAMURA Takumi | 2012-01-22 | 1 | -3/+2 | 
| | | | | | llvm-svn: 148659 | ||||
| * | add dyn_cast_or_null tests, exclude invalid dyn_cast test | Gabor Greif | 2010-07-22 | 1 | -8/+25 | 
| | | | | | llvm-svn: 109111 | ||||
| * | tidy up | Gabor Greif | 2010-07-22 | 1 | -13/+9 | 
| | | | | | llvm-svn: 109110 | ||||
| * | add dyn_cast tests and beef up others a bit | Gabor Greif | 2010-07-22 | 1 | -5/+34 | 
| | | | | | llvm-svn: 109109 | ||||
| * | tidy up | Gabor Greif | 2010-07-20 | 1 | -5/+3 | 
| | | | | | llvm-svn: 108889 | ||||
| * | migrate essentially everything from under #ifdef DEBUG_CAST_OPERATORS into ↵ | Gabor Greif | 2010-07-20 | 1 | -7/+55 | 
| | | | | | | | this file llvm-svn: 108864 | ||||
| * | extend to cast<> and cast_or_null<> tests | Gabor Greif | 2010-07-20 | 1 | -3/+31 | 
| | | | | | llvm-svn: 108854 | ||||
| * | isa<> tests | Gabor Greif | 2010-07-20 | 1 | -1/+7 | 
| | | | | | llvm-svn: 108851 | ||||
| * | initial checkin for unittest to exercise Support/Casting.h | Gabor Greif | 2010-07-20 | 1 | -0/+32 | 
| this is still minimal on purpose, but I plan to migrate the ugly hack under #ifdef DEBUG_CAST_OPERATORS into this file llvm-svn: 108849 | |||||

