]> granicus.if.org Git - clang/commit
Fix the search for visible declarations within a Scope to ensure that
authorDouglas Gregor <dgregor@apple.com>
Thu, 7 Jan 2010 00:31:29 +0000 (00:31 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 7 Jan 2010 00:31:29 +0000 (00:31 +0000)
commit539c5c34063066753f27bb0f39fdcde1acc06328
treec2aafb435b85f78e8d73cb1d5e40fd0863e187cf
parent0d535c89c5d02017153fb971e1ef080cd80cb4b8
Fix the search for visible declarations within a Scope to ensure that
we look into a Scope that corresponds to a compound statement whose
scope was combined with the scope of the function that owns it. This
improves typo correction in many common cases.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92879 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaLookup.cpp
test/FixIt/typo.cpp
test/Sema/switch.c