Richard Smith 541b38be7b Switch the semantic DeclContext for a block-scope declaration of a function or
variable from being the function to being the enclosing namespace scope (in
C++) or the TU (in C). This allows us to fix a selection of related issues
where we would build incorrect redeclaration chains for such declarations, and
fail to notice type mismatches.

Such declarations are put into a new IdentifierNamespace, IDNS_LocalExtern,
which is only found when searching scopes, and not found when searching
DeclContexts. Such a declaration is only made visible in its DeclContext if
there are no non-LocalExtern declarations.

llvm-svn: 191064
2013-09-20 01:15:31 +00:00
..
2011-08-19 23:08:33 +00:00
2011-08-19 23:08:33 +00:00
2011-08-19 23:08:33 +00:00
2011-08-19 23:08:33 +00:00
2011-08-19 23:08:33 +00:00
2011-08-19 23:08:33 +00:00
2011-08-19 23:08:33 +00:00
2013-09-11 03:49:30 +00:00
2011-01-18 05:36:08 +00:00
2012-01-20 22:10:18 +00:00
2010-08-21 02:46:28 +00:00
2013-08-20 22:01:44 +00:00
2012-03-08 15:07:42 +00:00
2012-03-08 15:07:42 +00:00
2011-01-29 22:39:23 +00:00
2013-08-22 18:45:40 +00:00
2011-01-14 22:19:38 +00:00
2011-08-12 23:33:52 +00:00
2013-06-05 13:50:24 +00:00