summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/typo-correction-crash.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Sema] Correct typos in return statements so the return types of 'auto' ↵Sam McCall2019-05-081-1/+12
| | | | | | | | | | | | | | | | | | | | | functions are always deduced. Summary: e.g. auto foo() { return no_such_thing; // Return value is a TypoExpr } using T = decltype(foo()); // Uh-oh, undeduced auto. Reviewers: rsmith Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D61649 llvm-svn: 360224
* [Sema] Null check in BuildDeclarationNameExprYi Kong2017-09-251-1/+3
| | | | | | | | | | Qualtype may point to null if we cannot infer its type yet. Fixes PR33843 Differential Revision: https://reviews.llvm.org/D38158 llvm-svn: 314124
* Fix typo-correction crash if a typo occurs within the operand of aRichard Smith2016-06-301-0/+2
| | | | | | | | | function-style cast to a non-dependent type which is then used in an invalid way. We'd lose the "type dependent" bit here, and downstream Sema processing would then discard the expression if it was used in a context where its type rendered it invalid. llvm-svn: 274267
* [typo-correction] Apply name specifier corrections when forming a NNSReid Kleckner2016-02-161-0/+8
| | | | | | | | Previously we would leave behind the old name specifier prefix, which creates an invalid AST. Other callers of CorrectTypo update their CXXScopeSpec objects with the correction specifier if one is present. llvm-svn: 260993
* Fix a crash when there is a typo in the return statement.Manman Ren2016-02-041-0/+11
If the typo happens after a successful deduction for an earlier return statement, we should check if the deduced type is null before using it. The typo correction happens after we try to deduce the return type and we ignore the deduction from the typo and continue to typo correction. rdar://24342247 llvm-svn: 259820
OpenPOWER on IntegriCloud