summaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-05-09 00:57:24 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-05-09 00:57:24 +0000
commit70cd574857c6023b8c60e325c4029a23f716c2dd (patch)
tree2db44e7047a000dbb2597741851c7f87bacd125a /lib/Sema/SemaExpr.cpp
parent94dcb0947c393ff77f6da09970c197fb651631c0 (diff)
downloadclang-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.cpp4
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;
}