hdrgen.c in visitFuncIdent() and functionToBufferFull(). It's duplicated there, too, sigh.