diff options
author | Kaelyn Uhrain <rikka@google.com> | 2012-01-25 21:11:35 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2012-01-25 21:11:35 +0000 |
commit | 3943b1c0215da2a4171dd6c696cb75d19e5a04a9 (patch) | |
tree | a17873b4f3ee5a83528d15fc4320cdf6adcb2c6e /lib/Sema/SemaStmt.cpp | |
parent | 1621e75dc4049e7b82bf81f4eb739a99f91bd3d8 (diff) |
Allow typo correction to be disabled in BuildOverloadedCallExpr variant.
This suppresses typo correction for auto-generated call expressions such
as to 'begin' or 'end' within a C++0x for-range statement.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r-- | lib/Sema/SemaStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index 86bb74040a..0eb8d2863c 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -1286,7 +1286,7 @@ static ExprResult BuildForRangeBeginEndCall(Sema &SemaRef, Scope *S, FoundNames.begin(), FoundNames.end(), /*LookInStdNamespace=*/true); CallExpr = SemaRef.BuildOverloadedCallExpr(S, Fn, Fn, Loc, &Range, 1, Loc, - 0); + 0, /*AllowTypoCorrection=*/false); if (CallExpr.isInvalid()) { SemaRef.Diag(Range->getLocStart(), diag::note_for_range_type) << Range->getType(); |