only the import of Y is considered. */
static struct symbol *
-cp_lookup_symbol_imports (const char *scope,
- const char *name,
- const struct block *block,
- const domain_enum domain,
- const int declaration_only,
- const int search_parents)
+cp_lookup_symbol_via_imports (const char *scope,
+ const char *name,
+ const struct block *block,
+ const domain_enum domain,
+ const int declaration_only,
+ const int search_parents)
{
struct using_direct *current;
struct symbol *sym = NULL;
/* If this import statement creates no alias, pass
current->inner as NAMESPACE to direct the search
towards the imported namespace. */
- sym = cp_lookup_symbol_imports (current->import_src,
- name, block,
- domain, 0, 0);
+ sym = cp_lookup_symbol_via_imports (current->import_src,
+ name, block,
+ domain, 0, 0);
}
current->searched = 0;
discard_cleanups (searched_cleanup);
return NULL;
}
-/* Like cp_lookup_symbol_imports, but if BLOCK is a function, it
+/* Like cp_lookup_symbol_via_imports, but if BLOCK is a function, it
searches through the template parameters of the function and the
function's type. */
}
}
- return cp_lookup_symbol_imports (scope, name, block, domain, 1, 1);
+ return cp_lookup_symbol_via_imports (scope, name, block, domain, 1, 1);
}
/* Searches for NAME in the current namespace, and by applying
blocks. */
while (block != NULL)
{
- sym = cp_lookup_symbol_imports (scope, name, block,
- domain, 0, 1);
+ sym = cp_lookup_symbol_via_imports (scope, name, block,
+ domain, 0, 1);
if (sym)
return sym;