]> granicus.if.org Git - clang/commit
Add custom callback object for typo correction in BuildRecoveryCallExpr.
authorKaelyn Uhrain <rikka@google.com>
Wed, 25 Jan 2012 18:37:44 +0000 (18:37 +0000)
committerKaelyn Uhrain <rikka@google.com>
Wed, 25 Jan 2012 18:37:44 +0000 (18:37 +0000)
commit60a09dcc4656b82c7f96f8719a403a83247f6742
tree758cc3516985272b59ce994de854a98b6a7d0d5b
parentd1bb4ae6cbc0f8bea4b329e040f58b18c03388e7
Add custom callback object for typo correction in BuildRecoveryCallExpr.

The new callback, in addition to limiting which keywords to include in
the pool of typo correction candidates, also filters out non-keyword
candidates that don't refer to (template) functions that accept the
number of arguments that are present for the call being recovered.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148962 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/TypoCorrection.h
lib/Sema/SemaOverload.cpp
test/SemaCXX/typo-correction.cpp