We're already generating a 'printPretty' function for attributes. Rather than generating another function, we could pass an enum value to that to indicate where in the declaration we are, and just ask all attributes to print themselves in both positions. http://llvm-reviews.chandlerc.com/D395