rjmccall at apple.com
Mon Nov 16 02:21:11 CST 2009
Evan Cheng wrote:
> I am pretty sure the .cpp files always explicitly use "llvm" namespace. Look for:
> using namespace llvm;
> Is that sufficient?
No; once it's visible through ADL (because ilist<>::iterator extends
std::iterator) there's no hiding or precedence mechanism we can
exploit. On the other hand, AFAICT std::next is interchangeable with
llvm::next; we should be able to replace llvm::next with 'using
std::next' in C++0x builds.
More information about the LLVMdev