[cfe-commits] r161261 - in /cfe/trunk: include/clang/AST/Comment.h include/clang/AST/CommentSema.h include/clang/Basic/DiagnosticCommentKinds.td lib/AST/Comment.cpp lib/AST/CommentSema.cpp test/Sema/warn-documentation.cpp

Dmitri Gribenko gribozavr at gmail.com
Mon Aug 6 09:31:38 PDT 2012


On Mon, Aug 6, 2012 at 8:42 AM, Douglas Gregor <dgregor at apple.com> wrote:
> On Aug 3, 2012, at 2:15 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>> +// \returns command
>> +
>> +def warn_doc_returns_not_attached_to_a_function_decl : Warning<
>> +  "'\\%0' command used in a comment that is not attached to "
>> +  "a function declaration">,
>> +  InGroup<Documentation>, DefaultIgnore;
>
> "function or method", to cover ObjC methods?
>
>> +def warn_doc_returns_attached_to_a_void_function : Warning<
>> +  "'\\%0' command used in a comment that is attached to a "
>> +  "%select{void function|constructor|destructor}1">,
>> +  InGroup<Documentation>, DefaultIgnore;
>
> Should the select also specialize for 'method', for ObjCMethodDecls?

Thank you for the review!  I agree.  Changed diagnostic text in 161324.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list