<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Aug 9, 2011, at 4:11 PM, Aaron Ballman wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">On Tue, Aug 9, 2011 at 5:49 PM, Douglas Gregor <<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>> wrote:<br><br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">This, of course, is predicated on the thought that having individual<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">warning numbers is useful to the majority of people.  From personal<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">experience, I like having a warning number because it makes it easier<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">to Google for others who've had the same issue.  Most diagnostics<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">contain source-specific information, and so Google searches become a<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">guessing game of what keywords are important.  YMMV<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">But yes, this is the selling point for having numbered diagnostics.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">This is the selling point of having a unique searchable name. It doesn't have to be an otherwise-meaningless number.<br></blockquote><br>Definitely agreed.  I think the hard part is the uniqueness of the<br>names.  You don't run into that with meaningless numbers.  But as was<br>pointed out, suppressing random numbers in code isn't exactly the best<br>thing ever either.  So in that regard, unique names are definitely<br>preferred.</span></blockquote></div><br><div>All of our diagnostics have unique tablegen entries, so getting unique names for -W flags might not be that hard.  When one looks at the .td files, many of the diagnostic names directly correspond to the -W flag.</div></body></html>