[LLVMdev] Function Formal parameters

Chris Lattner sabre at nondot.org
Mon Dec 2 19:46:01 PST 2002

> can we assume that
>   for(Function::aiterator I = F.abegin(); E = F.aend(); I!=E; ++I) {


> would iterate over function "F" formal parameters in order? All the
> tests I've run so far indicate so, but unless it is guaranteed, I
> don't see how can I match formal and actual parameters for a function.

Yup, that's guaranteed.  Note that the first form is certainly more
idiomatic C++, so please don't do the second one...



More information about the llvm-dev mailing list