-
Notifications
You must be signed in to change notification settings - Fork 15k
Closed
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Description
Bugzilla Link | 47263 |
Version | unspecified |
OS | All |
CC | @gribozavr,@zygoloid |
Extended Description
Consider the following example:
/// Sentence that ends with \param bar.
int foo(int bar) { }
When compiled with -Wdocumentation this results in warning:
$ clang -c -Wdocumentation /tmp/repro.c
/tmp/repro.c:1:39: warning: empty paragraph passed to '\param' command [-Wdocumentation]
/// Sentence that ends with \param bar.
~~~~~~~~~~^
/tmp/repro.c:1:36: warning: parameter 'bar.' not found in the function declaration [-Wdocumentation]
/// Sentence that ends with \param bar.
^~~~
/tmp/repro.c:1:36: note: did you mean 'bar'?
/// Sentence that ends with \param bar.
^~~~
bar
This is silly and particularly annoying for projects such as LLVM that require comments to be sentences terminated with a period.
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!