diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-05-09 00:57:24 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-05-09 00:57:24 +0000 |
commit | 70cd574857c6023b8c60e325c4029a23f716c2dd (patch) | |
tree | 2db44e7047a000dbb2597741851c7f87bacd125a /lib/Sema/SemaExpr.cpp | |
parent | 94dcb0947c393ff77f6da09970c197fb651631c0 (diff) | |
download | clang-70cd574857c6023b8c60e325c4029a23f716c2dd.tar.gz |
When typo-correcting a function name, consider correcting to a type name
for a function-style cast.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 8bb306e66d..f365d82047 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -2068,8 +2068,8 @@ bool Sema::DiagnoseEmptyLookup(Scope *S, CXXScopeSpec &SS, LookupResult &R, AcceptableWithoutRecovery = isa<TypeDecl>(UnderlyingND) || isa<ObjCInterfaceDecl>(UnderlyingND); } else { - // FIXME: We found a keyword. Suggest it, but don't provide a fix-it - // because we aren't able to recover. + // FIXME: We found a keyword or a type. Suggest it, but don't provide a + // fix-it because we aren't able to recover. AcceptableWithoutRecovery = true; } |