Implemented ADL by argument function names
authorCiprian Ciubotariu <cheepeero@gmx.net>
Sun, 17 Oct 2010 02:33:38 +0000 (05:33 +0300)
committerCiprian Ciubotariu <cheepeero@gmx.net>
Sat, 23 Oct 2010 18:34:25 +0000 (21:34 +0300)
commit8212c34bb259c9047de4edff3ec09beb178896f7
tree86b9f42c002a6c2b6ffb3a38032b8ac801c51034
parent1b8811c9554fc23c7015ec33c2a3cd2c56c6de10
Implemented ADL by argument function names

For this purpose I had to extend OverloadResolver::Paramter to also
keep the name of the function passed within the argument's value.

The current implementation does not check if the argument expression
refers only to a function name, using any last parsed declaration found
in ExpressionVisitor::m_lastInstance.
In association with the type inference performed on the argument,
the ADL would discriminate the correct case (i.e. on a FunctionType).
languages/cpp/cppduchain/adlhelper.cpp
languages/cpp/cppduchain/adlhelper.h
languages/cpp/cppduchain/expressionvisitor.cpp
languages/cpp/cppduchain/overloadresolution.h