Start naming functions more uniformly.

For any function that has a name, ensure that the name is a compound
name with argument names for each of the parameters. 


Swift SVN r16398
This commit is contained in:
Doug Gregor
2014-04-16 06:05:45 +00:00
parent db439c1a4a
commit e12afa2e1d
6 changed files with 39 additions and 35 deletions

View File

@@ -359,18 +359,7 @@ void Module::lookupValue(AccessPathTy AccessPath, DeclName Name,
void BuiltinUnit::lookupValue(Module::AccessPathTy accessPath, DeclName name,
NLKind lookupKind,
SmallVectorImpl<ValueDecl*> &result) const {
// There are currently no builtins with compound names.
if (!name.isSimpleName())
return;
getCache().lookupValue(name.getBaseName(), lookupKind, *this, result);
#ifndef NDEBUG
for (auto r : result) {
assert(r->getFullName().isSimpleName()
&& "please make the builtin lookup cache handle compound name lookup");
}
#endif
}
DerivedFileUnit::DerivedFileUnit(Module &M)