]> granicus.if.org Git - clang/commit
Attempt typo correction for function calls with the wrong number of arguments.
authorKaelyn Uhrain <rikka@google.com>
Mon, 8 Jul 2013 23:13:44 +0000 (23:13 +0000)
committerKaelyn Uhrain <rikka@google.com>
Mon, 8 Jul 2013 23:13:44 +0000 (23:13 +0000)
commit6c4898b6ff23950cddca6948ef3fa0dd1848f6f1
tree07260fae0c4171686c902ce15942e33b45afb651
parent761695fec3e4fe5aaae1544d489389bcf6cd9be4
Attempt typo correction for function calls with the wrong number of arguments.

Combined with typo correction's new ability to apply global/absolute nested
name specifiers to possible corrections, cases such as in PR12287 where the
desired function is being shadowed by a lexically closer function with the
same name but a different number of parameters will now include a FixIt.

On a side note, since the test for this change caused
test/SemaCXX/typo-correction.cpp to exceed the typo correction limit for
a single file, I've included a test case for exceeding the limit and added
some comments to both the original and part two of typo-correction.cpp
warning future editors of the files about the limit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185881 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/FixIt/typo.cpp
test/SemaCXX/default1.cpp
test/SemaCXX/typo-correction-pt2.cpp [new file with mode: 0644]
test/SemaCXX/typo-correction.cpp