//==--- DiagnosticCommentKinds.td - diagnostics related to comments -------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// let Component = "Comment" in { let CategoryName = "Documentation Issue" in { // HTML parsing errors. These are under -Wdocumentation to make sure the user // knows that we didn't parse something as he might expect. def warn_doc_html_start_tag_expected_quoted_string : Warning< "expected quoted string after equals sign">, InGroup, DefaultIgnore; def warn_doc_html_start_tag_expected_ident_or_greater : Warning< "HTML start tag prematurely ended, expected attribute name or '>'">, InGroup, DefaultIgnore; def note_doc_html_tag_started_here : Note< "HTML tag started here">; // HTML semantic errors def warn_doc_html_end_forbidden : Warning< "HTML end tag '%0' is forbidden">, InGroup, DefaultIgnore; def warn_doc_html_end_unbalanced : Warning< "HTML end tag does not match any start tag">, InGroup, DefaultIgnore; def warn_doc_html_start_end_mismatch : Warning< "HTML start tag '%0' closed by '%1'">, InGroup, DefaultIgnore; def note_doc_html_end_tag : Note< "end tag">; // Commands def warn_doc_block_command_empty_paragraph : Warning< "empty paragraph passed to '\\%0' command">, InGroup, DefaultIgnore; def warn_doc_block_command_duplicate : Warning< "duplicated command '\\%0'">, InGroup, DefaultIgnore; def note_doc_block_command_previous : Note< "previous command '\\%0' here">; def note_doc_block_command_previous_alias : Note< "previous command '\\%0' (an alias of '\\%1') here">; // \param command def warn_doc_param_invalid_direction : Warning< "unrecognized parameter passing direction, " "valid directions are '[in]', '[out]' and '[in,out]'">, InGroup, DefaultIgnore; def warn_doc_param_spaces_in_direction : Warning< "whitespace is not allowed in parameter passing direction">, InGroup, DefaultIgnore; def warn_doc_param_not_attached_to_a_function_decl : Warning< "'\\param' command used in a comment that is not attached to " "a function declaration">, InGroup, DefaultIgnore; def warn_doc_param_duplicate : Warning< "parameter '%0' is already documented">, InGroup, DefaultIgnore; def note_doc_param_previous : Note< "previous documentation">; def warn_doc_param_not_found : Warning< "parameter '%0' not found in the function declaration">, InGroup, DefaultIgnore; def note_doc_param_name_suggestion : Note< "did you mean '%0'?">; // \tparam command def warn_doc_tparam_not_attached_to_a_template_decl : Warning< "'\\tparam' command used in a comment that is not attached to " "a template declaration">, InGroup, DefaultIgnore; def warn_doc_tparam_duplicate : Warning< "template parameter '%0' is already documented">, InGroup, DefaultIgnore; def note_doc_tparam_previous : Note< "previous documentation">; def warn_doc_tparam_not_found : Warning< "template parameter '%0' not found in the template declaration">, InGroup, DefaultIgnore; def note_doc_tparam_name_suggestion : Note< "did you mean '%0'?">; // \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 or method declaration">, InGroup, DefaultIgnore; def warn_doc_returns_attached_to_a_void_function : Warning< "'\\%0' command used in a comment that is attached to a " "%select{function returning void|constructor|destructor|" "method returning void}1">, InGroup, DefaultIgnore; } // end of documentation issue category } // end of AST component