Skip to content
  • Richard Smith's avatar
    Switch the semantic DeclContext for a block-scope declaration of a function or · 541b38be
    Richard Smith authored
    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
    541b38be
Loading